Automating quicktime player with applescript, Automating quicktime player on windows – Apple QuickTime 7 User Manual

Page 54

Advertising
background image

54

Appendix

Shortcuts and Tips

Automating QuickTime Player With AppleScript

In Mac OS X, you can use AppleScript to automate QuickTime Player functions. For
example, you can open a movie and tell it to play for a specific duration; automate the
conversion of movies from one format to another; adjust track playback properties
such as start time, volume, and layer; or adjust movie properties such as copyright and
author.

To determine all of the AppleScript commands you can use to control QuickTime
Player, install AppleScript and look at the QuickTime Player AppleScript dictionary.

1

Open Script Editor.

2

Choose File > Open Dictionary.

3

Select QuickTime Player.

Sample QuickTime Player scripts can be found on the AppleScript website
(www.apple.com/applescript/quicktime/).

Automating QuickTime Player on Windows

In Windows, you can use JavaScript, Visual Basic, or other Active Scripting languages to
automate QuickTime Player functions. As with AppleScript on Mac OS X, you can
control movie playback, convert movies from one format to another, adjust movie and
track properties, and more.

There are three QuickTime Player objects available for use:
 QuickTimePlayerApp
 The application object. This object has a Players property which returns a collection

of the QuickTime Player windows. The Quit method exits the program.

 QuickTimePlayers
 Use this object to enumerate player windows; the Remove and Add methods permit

the removal and creation of new QuickTime Player windows.

Play movie at double size

Command-2

Alt-2

Play movie at full size

Command-3

Alt-3

Move In marker to playhead location

I

I

Move Out marker to playhead location

O

O

Extend selection to the left

Option–Shift–Left Arrow

Extend selection to the right

Option–Shift–
Right Arrow

Extend selection to point clicked in LCD Shift-click

To do this...

Press (Mac OS X)

Press (Windows)

Advertising