AppleScript Programming/Sample Programs/Run QuickTime in full screen

Copy the script, paste it into ScriptEditor, and save as an application.

When you drop a movie-file on the application, it'll first check if there is more than one file dropped into the application. If more than one, then it'll note about it and end the program. Else, it'll open QuickTime and bring it on front, open the dropped movie in QT, make it full screen and start playing it.

If you start the application with double-click, it'll just give you a dialog and quit. Notice that this script checks for cases that it can't handle and let's the user know.


 * 1) It checks for the case of there being no movies to play and alerts the user rather than just doing nothing and being mysterious to the user.


 * 1) It checks for more than on movie and alerts the user that only one movie can be played and plays the first movie