Adobe 23101764 Scripting Guide - Page 31
AppleScript debugging
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 31 highlights
Scripting basics 2 Debugging and Error Handling 2.10.1 AppleScript debugging While the basic syntax of your script will be checked when compiled, it is possible to create and compile scripts in AppleScript that will not run properly. The Script Editor Application doesn't have extensive debugging tools, but it does have the an Event Log window. To watch the commands your script sends and the results it receives, choose "Controls > Open Event Log". The Script Editor displays the Event Log window. Check the "Show Events" and "Show Events Results" options at the top of the "Event Log" window and run your script. As the script executes, you'll see the commands sent to Photoshop, and the Photoshop responses. You can display the contents of one or more variables in the log window by using the log command. log {myVariable, otherVariable} In addition, the Result window (choose Controls > Show Result) will display the value from the last script statement evaluated. Third-party editors offer additional debugging features. For more information on using AppleScript, see the AppleScript Reference Guide on the installation CD. Photoshop CS Scripting Guide 27