
3
Contents
1
Introduction ............................................................................................................................... 31
JavaScript support in Adobe Photoshop CS3 ....................................................................................................................31
Executing scripts ....................................................................................................................................................................31
Installing scripts ...............................................................................................................................................................32
Executing other scripts ..................................................................................................................................................32
Startup scripts .........................................................................................................................................................................32
Changes Since Earlier Versions................................................................................................................................................32
2
JavaScript Object Reference ..................................................................................................... 35
Working with the Properties Tables ......................................................................................................................................35
displayDialogs.................................................................................................................................................................35
Working with the Methods Tables .........................................................................................................................................35
executeAction.................................................................................................................................................................36
Working with Method Parameters ..................................................................................................................................36
ActionDescriptor ..........................................................................................................................................................................37
Properties..................................................................................................................................................................................37
count ..................................................................................................................................................................................37
typename .........................................................................................................................................................................37
Methods ....................................................................................................................................................................................37
clear ....................................................................................................................................................................................37
erase ...................................................................................................................................................................................37
fromStream......................................................................................................................................................................37
getBoolean.......................................................................................................................................................................37
getClass .............................................................................................................................................................................37
getData..............................................................................................................................................................................37
getDouble ........................................................................................................................................................................37
getEnumerationType ...................................................................................................................................................37
getEnumerationValue..................................................................................................................................................37
getInteger.........................................................................................................................................................................37
getKey................................................................................................................................................................................37
getList ................................................................................................................................................................................37
getObjectType................................................................................................................................................................38
getObjectValue...............................................................................................................................................................38
getPath ..............................................................................................................................................................................38
getReference ...................................................................................................................................................................38
getString ...........................................................................................................................................................................38
getType .............................................................................................................................................................................38
getUnitDoubleType ......................................................................................................................................................38
getUnitDoubleValue.....................................................................................................................................................38
hasKey................................................................................................................................................................................38
isEqual................................................................................................................................................................................38
putBoolean ......................................................................................................................................................................38
putClass.............................................................................................................................................................................38
putData .............................................................................................................................................................................38
putDouble ........................................................................................................................................................................38
putEnumerated ..............................................................................................................................................................38