Creating and testing scripts, Creating a script, Duplicating and saving scripts – Apple DVD Studio Pro 4 User Manual

Page 486: Duplicating scripts

Advertising
background image

Creating and Testing Scripts

While it is easy to create scripts, it’s a good idea to first spend some time planning exactly
what you intend the script to do. Sometimes a single script can be designed to fit multiple
situations, or it may be easier to create multiple similar scripts, with each configured for
a specific case.

Creating a Script

Scripts can vary greatly. Simple scripts may contain only one or two commands, while
complex scripts can contain many commands and dependencies on other scripts. No
matter how complex the script, you create all scripts using the same basic methods.

To create a script

1

Do one of the following:

• Choose Project > Add to Project > Script, or press Command–Shift–Single Quote (’).

• Control-click in the Outline or Graphical tab, choose Add from the shortcut menu, then

choose Script from the submenu.

• Click Add Script in the toolbar.

A new script is added to the Outline and Graphical tabs.

2

To name the script, do one of the following:

• Enter the name in the Name field in the Script Inspector.

• Select the script in the Outline or Graphical tab, click its name, type the new name,

then press Return.

3

Double-click the new script in the Outline or Graphical tab or click the Script tab to open
the Script Editor.

4

In the Script Editor, select the default Nop command line.

The Script Command Inspector appears, displaying the command configuration display.

5

Configure the command line as desired, and add new command lines as needed.

See

Script Command Details

for details on the commands you can add to a script. See

About Connections

for information on connecting scripts to your project’s elements.

Duplicating and Saving Scripts

Most scripts contain command lines that are specific to a particular function in a particular
project. However, because it is often easier to modify an existing script rather than start
from scratch, DVD Studio Pro includes several tools that allow you to create copies of a
script for use in this and other projects.

Duplicating Scripts

When creating several similar scripts, use the Outline or Graphical tab’s duplication function
to make a copy of a script.

486

Chapter 20

Creating Scripts

Advertising