Scripts, Use a script, Run a script – Adobe Illustrator CS4 User Manual

Page 450: Install a script

Advertising
background image

443

USING ADOBE ILLUSTRATOR CS4

Automating tasks

If you select Data Sets for Source, you can set an option for generating file names when overriding Save and Export
commands:

File + Number

Generates the filename by taking the original document’s filename, removing any extension, and then

appending a

three-digit number corresponding to the data set.

File + Data Set Name

Generates the filename by taking the original document’s filename, removing any extension, and

then appending an underscore and the name of the data set.

Data Set Name

Generates the filename by taking the name of the data set.

Scripts

Use a script

When you run a script, your computer performs a sequence of operations. These operations may involve only
Illustrator, or they may involve other applications, such as word-processing, spreadsheet, and database-management
programs.

Illustrator supports multiple scripting environments (including Microsoft Visual Basic, AppleScript, JavaScript, and
ExtendScript). You can use the standard scripts that come with Illustrator, and you can create your own scripts and
add them to the Scripts submenu.

For more information about scripting in Illustrator, see the sample scripts and scripting documentation in the Adobe
Illustrator CS4/Scripting folder.

Run a script

Choose File

> Scripts, and choose a script. Alternatively, choose File

> Scripts

> Other Script, and navigate to a

script.

Note: If you edit a script while Illustrator is running, you must save your changes for them to take effect.

Install a script

Copy the script to your computer’s hard disk.

If you place the script in the Adobe Illustrator CS4 Scripts folder, the script will appear in the File

> Scripts

submenu.

If you place the script in another location on the hard disk, you can run the script in Illustrator by choosing File

>

Scripts

> Other Script.

Note: If you place a script in the Adobe Illustrator CS4 Scripts folder while Illustrator is running, you must restart
Illustrator for the script to appear in the Scripts submenu.

Advertising