display youtube(TM) Lib Script Library
v2.2
Takaaki Naganoya@Piyomaru Software
http://piyocast.com/as

"display youtube Lib" script Library provides YouTube(TM) movie play ability with alert dialog UI on macOS.

--Copyrights
"YouTube" is a registered mark or name of service of Google LLC. 

--Environment
for macOS 15 or later (macOS 26 confirmed)
(macOS 13 and 14 will work)
Apple Silicon & Intel Mac

--Installation
Copy "display youtube Lib.scptd" to ~/Library/Script Libraries folder. 
If the "Script Libraries" folder does not exists, make the folder by yourself.

--Browsing AppleScript dictionary of this Library
Open "Library" window from Script Editor, then add this library to library list.
Then you can browse this library's dictionary with sample script.

--Commands
display youtube v : Display YouTube movie with an alert dialog
	display youtube
		main message text : Main title of an alert dialog
		sub message text : Sub title of an alert dialog
		with URL text : YouTube URL to play. This library accepts https://www.youtube.com/watch? and https://www.youtube.com/embed/ URLs.
		with size integer : Size of YouTube player view -->  {width, height}
		start from integer : Start point in a YouTube movie by seconds.  syn starts from

--History
	2/4/2019	v1.0 First Release.
	13/11/2025	v2.2 Update. Fit to the macOS 26 environment to play YouTube movie and fit to the latest YouTube API.

--Licence
	display youtube(TM) Lib Script Library is Copyright © 2019-2025 Takaaki Naganoya <maro@piyocast.com>
	All rights reserved.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

