Smoke Alarm User Manual
Photoshop CS3
Adobe Photoshop CS3 Scripting Guide Contents 4
Working with Channel Objects.........................................................................................................................................45
Using the Document Info Object .....................................................................................................................................46
Using History State Objects................................................................................................................................................46
Using Notifier Objects ..........................................................................................................................................................47
Using the PathItem Object .................................................................................................................................................48
Working with Color Objects .....................................................................................................................................................50
Getting and Converting Colors.........................................................................................................................................51
Working with Filters ....................................................................................................................................................................53
Understanding Clipboard Interaction ..................................................................................................................................54
Using the Copy and Paste commands ...........................................................................................................................54
Using the Copy Merged Command/Method...............................................................................................................55
Working with Units ......................................................................................................................................................................55
Unit Values................................................................................................................................................................................56
Unit Value Usage....................................................................................................................................................................57
Setting Ruler and Type Units in a Script ........................................................................................................................59
Sample Workflow Automation JavaScripts.........................................................................................................................59
Advanced Scripting .....................................................................................................................................................................60
Working with Document Preferences ............................................................................................................................60
Applying Color to a Text Item............................................................................................................................................63
Applying a Wave Filter .........................................................................................................................................................66
Applying a MotionBlur Filter..............................................................................................................................................69
4 Action Manager ......................................................................................................................... 72
The ScriptListener Plug-In .........................................................................................................................................................72
Installing ScriptListener .......................................................................................................................................................72
Action Manager Scripting Objects.........................................................................................................................................73
Recording a Script using ScriptListener ...............................................................................................................................73
Using the Action Manager from JavaScript ........................................................................................................................74
Using the Action Manager from a VBS Script.....................................................................................................................75
Running JavaScript-based Action Manager code from VBScript................................................................................78
Running JavaScript-based Action Manager code from AppleScript.........................................................................78
Using ScriptListener to find event IDs and class IDs........................................................................................................79
Index ........................................................................................................................................... 82