Automating quicktime player on windows – Apple QuickTime 7.2 User Manual

Page 56

Advertising
background image

56

Appendix

Shortcuts and Tips

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.

 QuickTimePlayer

This object has properties and methods to open movies, control the window’s
position and appearance, and to interact with its menus. The QTControl property
returns the ActiveX control hosting the window’s movie:

To examine the QuickTime Player or QuickTime Control interfaces in detail, look at the
Apple QuickTime Player Library 1.0 or Apple QuickTime Control 2.0 interfaces in a COM
object browser.

Advertising