Adobe 65015634 Scripting Guide - Page 74

Action Manager Scripting Objects, Recording a Script using ScriptListener

Page 74 highlights

CHAPTER 4: Action Manager Action Manager Scripting Objects 74 To uninstall the ScriptListener: 1. Close Photoshop. 2. Verify that a copy of the file ScriptListener.8li still exists in the ..\Adobe Photoshop CS4\ Scripting\Utilities folder. 3. Delete the file ScriptListener.8li from the following location: ..\Adobe Photoshop CS\Plug-Ins\Automate 4. Delete the log files ScriptingListenerJS.log and ScriptingListenerVB.log from your desktop. NOTE: In Windows, even though you remove the ScriptListener from the Automate folder, it may continue to record actions. To prevent the ScriptingListenerJS.log file from becoming too large, delete it each time you finish playing a Photoshop action. Action Manager Scripting Objects The objects Action Descriptor, Action List, and Action Reference are part of the Action Manager functionality. For detailed information about these objects, see the appropriate reference manual, or use the object browser for the language you are using. NOTE: These objects are not available in AppleScript. Recording a Script using ScriptListener The section demonstrates how to create a script log file using ScriptListener. We will record the actions necessary to apply the emboss filter to a document. (By default, the Emboss filter is available only via the Photoshop interface.) NOTE: ScriptListener must be installed in the Automate folder before you begin the following procedure. See "Installing ScriptListener" on page 73. To make the Emboss filter scriptable: 1. Open Photoshop, then open a document. 2. Choose Window > Actions, then choose New Action from the Actions palette menu. 3. Name the action, then click Record. 4. Choose Filter > Stylize > Emboss. 5. Using the following settings: ➣ Angle: 135 ➣ Height: 3 ➣ Amount: 100 6. Click OK.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87

C
HAPTER
4: Action Manager
Action Manager Scripting Objects
74
To uninstall the ScriptListener:
1.
Close Photoshop.
2.
Verify that a copy of the file
ScriptListener.8li
still exists in the
..\Adobe
Photoshop
CS4\
Scripting\Utilities
folder.
3.
Delete the file
ScriptListener.8li
from the following location:
..\Adobe
Photoshop
CS\Plug-Ins\Automate
4.
Delete the log files
ScriptingListenerJS.log
and
ScriptingListenerVB.log
from your desktop.
N
OTE
:
In Windows, even though you remove the ScriptListener from the Automate folder, it may continue
to record actions. To prevent the
ScriptingListenerJS.log
file from becoming too large, delete it each
time you finish playing a Photoshop action.
Action Manager Scripting Objects
The objects
Action
Descriptor
,
Action
List
, and
Action
Reference
are part of the Action Manager
functionality. For detailed information about these objects, see the appropriate reference manual, or use
the object browser for the language you are using.
N
OTE
:
These objects are not available in AppleScript.
Recording a Script using ScriptListener
The section demonstrates how to create a script log file using ScriptListener. We will record the actions
necessary to apply the emboss filter to a document. (By default, the Emboss filter is available only via the
Photoshop interface.)
N
OTE
:
ScriptListener must be installed in the
Automate
folder before you begin the following procedure.
See
“Installing ScriptListener” on page 73
.
To make the Emboss filter scriptable:
1.
Open Photoshop, then open a document.
2.
Choose
Window > Actions
, then choose
New Action
from the Actions palette menu.
3.
Name the action, then click
Record
.
4.
Choose
Filter > Stylize > Emboss
.
5.
Using the following settings:
Angle: 135
Height: 3
Amount: 100
6.
Click
OK
.