Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

AppleScript Changes and Additions

QuickTime 5 introduces a number of new changes and additions, designed to extend AppleScript support in QuickTime Player. A suite of new editing features and commands, including clipboard support, are introduced for the first time. Cut, copy, and paste are among the new commands. The new editing features and commands can be used to automate many movie-editing and playback tasks.

Other AppleScript-supported features in this release are useful for QuickTime authors or content creators who need to automate certain processes, such as the batch preparation of QuickTime movies. Using these features, you can do more sophisticated types of processing. For example, you can tweak the settings of a QuickTime movie before you actually perform an export, or export them and then tweak the settings.

Refer to <http://www.apple.com/applescript/qtas5/qtas5p2.htm> for a collection of example scripts available in QuickTime 5. These include script applets, droplets, and compiled scripts, one of which is explained in the section “Adding Media Skins Using the QuickTime API.” For more information concerning QuickTime Player scripting and AppleScript, refer to the AppleScript website at www.apple.com/applescript/.

This section describes the new features available to content authors and creators in QuickTime 5.

In this section:

Additional Commands
Application Class Changes
Favorite Class Changes
Movie Class Changes
Track Class Changes
Additional Classes
Export Event Changes
Other Changes


Additional Commands

The following AppleScript commands are new to QuickTime 5, and are accessible through clipboard or Edit menu operations:

The standard AppleScript command:

Application Class Changes

Additional application element:

Updated application property:

Additional application properties:

Favorite Class Changes

Addition of two elements:

Movie Class Changes

Additional movie properties.

Note that the following are runtime-only properties, taking effect immediately when you set them:

Some of the following are auto properties (persistent), i.e., they are saved with the movie. If you set them, they don’t take effect until the next time you open the movie.

Track Class Changes

Additional track element:

Additional properties.

The following is useful with any track:

The following are useful with video tracks:

The following are useful with audio tracks:

The following are useful with streaming tracks:

Additional Classes

Some Chapter class properties are now modifiable.

Class chapter: A reference to a chapter in a QuickTime™ movie

Plural form:

Properties:

Class stream: A stream within a streaming track

Properties:

Class display: A display device

Plural form:

Properties:

Class frame: A reference to a frame (sample) in a QuickTime movie track

The frame class is added as a synonym for chapter, but for use with plain text tracks. It uses the contents property in place of chapter name property.

Plural form:

Properties:

Class text frame: A reference to a text frame in a QuickTime text track

Plural form:

Properties:

For example, you can set text frame properties this way:

    tell text frame 1
        set background color to {2345, 34563, 324}
        set foreground color to {0, 0, 0}
        set justification to left
        set default font to "times"
        set default font size to 18
        set default font styles to {bold, italic}
    end tell

Export Event Changes

Export events have new options. Both "can export" and "export" take a "considering only" property, which restricts the kind of exporter used. The "export" event now takes a "replacing" parameter, which indicates that any existing destination file be deleted before the export is performed.

Other Changes

Application favorite elements can now be created:

Movie track elements can now be created to ease chapter track creation:



< Previous PageNext Page > Hide TOC


Last updated: 2001-10-01




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice