Using scriptsWhen you execute 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 ships with a standard set of scripts, but you can also add new scripts. If you're familiar with the JavaScript, AppleScript (Mac OS), or Visual Basic programming languages, you can create scripts for use in Illustrator. (See the scripting documentation on the Illustrator CD.) Illustrator recognizes the following types of scripts: JavaScript files (text files with the .js extension), AppleScript files and OSA scripts (compiled scripts or applets with the .scpt extension), Visual Basic scripts (executable files with the .exe extension), and VB Scripts (text files with the .vbs extension). To execute a script:
Do one of the following: To install a script: Copy the script to your computer's hard disk. If you place the script in the Presets/Scripts folder inside the Adobe Illustrator application folder, the script will appear in the File > Scripts submenu. If you place the script in another location on your hard disk, you can execute the script in Illustrator using the File > Scripts > Browse command. Note: If you edit a script while the Illustrator application is open, you must save your changes for the changes to take effect. If you place a script in the Scripts folder while the Illustrator application is running, you must relaunch Illustrator for the script to appear in the Scripts menu. |