Adobe 26001360 Scripting Guide - Page 15
What about actions?, System requirements
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 15 highlights
Adobe Illustrator CS Scripting Guide 15 Think about your work-is there a repetitive task that's driving you crazy? If so, you've identified a candidate for a script. What are the steps involved in performing the task? What are the conditions in which you need to do the task? Once you understand the process you go through to perform the task, you'll be ready to turn it into a script. What about actions? Illustrator actions are different from scripts. An Illustrator action is a series of tasks you have recorded while using the application-menu choices, tool choices, object selection, and other commands. When you "play" an action, Illustrator performs all of the recorded commands. You record, play, edit and delete actions using Illustrator's built-in Actions palette. The "Automating Tasks" chapter in the Adobe Illustrator User Guide covers actions in detail. With the introduction of scripting for Illustrator, it is important to avoid any confusion about the difference between actions and scripting. Actions and scripts are both ways of automating repetitive tasks, but they work very differently. The following points summarize the key differences. • Actions use a program's user interface to do their work. As an action runs, menu choices are executed, objects are selected, and recorded paths are created. Scripts do not use a program's user interface to perform tasks, and can execute faster than actions. • Actions have very limited facilities for getting and responding to information. You cannot add conditional logic to an action. Therefore, actions cannot make decisions based on the current situation. Scripts are capable of getting information and making decisions and calculations based on the information they receive from Illustrator. • A script can execute an action, but actions cannot execute scripts. System requirements The language you use to write scripts depends on the operating system of the platform you're using: AppleScript for Mac OS; Visual Basic for Windows. While the two scripting systems differ, the ways that they work with Illustrator are very similar. Each example script shown in this manual will be shown in both systems. Make sure the scripting plug-in is installed on your system before attempting to script Illustrator. 12 Aug 03