I am creating clipping paths for thousands of images for my client. Anything I can do to move this process a little faster will help.
Every time I open a new JPEG I assign it a clipping path before I begin drawing my path, for which a dialog appears asking me to name it Path 1, followed by another dialog box asking me to assign a pixel flatness. I can’t find any way to automate this in PS, so I am trying to create an AS to drag and drop the jpegs onto. But I still have to deal with the dialog boxes. The script I have works as a drag and drop, and takes me right up to the dialog boxes, which is where I need help.
Is it possible to use an AS to automate responding to these dialog boxes, so I don’t have to take the time to do it manually for each jpeg?
[code]on open fileList
tell application “Adobe Photoshop CS”
open fileList
activate
end tell
saveclippath()
end open
on saveclippath()
set MasterFolder to (path to desktop as string) & “clipping paths” as alias
tell application "Finder"
set the the_items to every file of MasterFolder
repeat with i from 1 to number of items in the_items
set this_item to item i of the_items as alias
set this_item_name to the name of this_item
try
tell application "Adobe Photoshop CS"
activate
open this_item showing dialogs never
do action "Make Clip Path (selection)" from "Default Actions"
end tell
end try
end repeat
end tell
end saveclippath[/code]