On 19/11/10 4:41 PM, "Nobumi Iyanaga" <[log in to unmask]> wrote: > This is the first script that I would like to write for Adobe > Photoshop. I am using Adobe Photoshop CS4, and I would like to open a > bunch of jpeg files in a folder, change each file's color, using what > would be the equivalent of the menu command "Image > Automatic Color", > and save the file as a pdf file. You managed to pick one of the commands that isn't directly scriptable via AppleScript -- you have to use javascript and do script. Try this: set theScript to "var id3 = charIDToTypeID( \"Lvls\" ); var desc2 = new ActionDescriptor(); var id4 = stringIDToTypeID( \"autoBlackWhite\" ); desc2.putBoolean( id4, true ); var id5 = stringIDToTypeID( \"autoNeutrals\" ); desc2.putBoolean( id5, true ); executeAction( id3, desc2, DialogModes.NO ); " tell application "Adobe Photoshop CS4" activate tell current document do javascript theScript show debugger on runtime error end tell end tell -- Shane Stanley <[log in to unmask]> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>