Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |

The can export command

The can export command determines whether a particular movie can be exported in a particular format. If a movie can be exported, the result is true. If the movie cannot be exported, the result is false.

can export: Determine if a particular export can be performed

               can export reference -- the movie to export

                    as AVI/BMP/DV Stream/FLC/hinted movie/image

                         sequence/picture/QuickTime Movie/AIFF/System 7

                         sound/wave/MuLaw/standard MIDI/text file

                         -- the desired file type

               Result: boolean -- is the export supported

For example: 

tell application "QuickTime Player"

tell movie "QuickTime 4 Sample Movie"

                    if can export as AIFF then export to ¬

                    "Macintosh HD:Desktop Folder:Sample Movie.aiff" as AIFF

               end tell

end tell

               Result: true


© 2000 Apple Computer, Inc.

Inside Macintosh: QuickTime Reference

| Previous | Chapter Contents | Chapter Top | Next |