Learn how to AppleScript, Apple's built in automation platform. In this video I tackle another viewer request. Thanks Nabila Quincy for the request! I'll show you how to open a movie file from your computer in QuickTime Player and tell QuickTime to start playing the video. This is a very simple process and even if you're a complete noob you'll be able to learn how to write your own script to do the same thing.
-- -- -- -- -- -- -- START EXAMPLE SCRIPT CODE -- -- -- -- -- -- --
on run
set theFile to "/Users/clickingkeys/Desktop/BeatSaber.mov"
set hfsPath to POSIX file theFile as string
tell application "QuickTime Player"
activate # BRINGS QUICKTIME TO THE FRONT, SO YOU CAN SEE THE VIDEO
set myMovie to open hfsPath
delay 4 # OPTIONAL, TELLS QUICKTIME TO WAIT 4 SECONDS BEFORE STARTING TO PLAY THE VIDEO
tell myMovie to play
end tell
end run
-- -- -- -- -- -- -- END EXAMPLE SCRIPT CODE -- -- -- -- -- -- --
Sample video clip in this tutorial is of Naysy, check out her channel for some wonderful VR content! / naysy
For more AppleScript tutorial videos, check out this play list.
• Learn to AppleScript (...
If you're interested in watching full scripts being written, have a look at this play list.
• AppleScript Project Ex...
27 июл 2024