Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |

The exists command

The exists command verifies that an object exists.

exists: Verify if an object exists

               exists reference -- the object in question

               Result: boolean -- true if it exists, false if not

For example: 

tell application "QuickTime Player"

               tell movie 1

                    if exists track "Video Track" then export to file¬
 Macintosh HD:Desktop Folder:Sample Movie.pict" as¬

                    picture

               end tell

end tell


© 2000 Apple Computer, Inc.

Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |