photoshop action : "do action" rejected by apple script
I cannot get apple script to run a photoshop action.
OSX 10.4.8
Photoshop CS (8)
Apple script 2.1.1(81)
My action changes the ITPC info then saves and closes the image. I want to be able to control click a folder and change the ITPC info for all files in the folder.
I have tried copying various solved answers from the forum and compiling them in order to rewrite them to fit my needs But Apple script stumbles at "do action" and tells me " expected end of line but found identifier "
This script was adapted form a solved answer on the forum:
TIA
Martin
set inputFolder to choose folder with prompt "Please choose the folder containing Images" --without invisibles
tell application "Finder"
--filesList is list of images
set filesList to files in inputFolder
end tell
repeat with aFile in filesList
tell application "Finder"
set theFile to aFile as alias
end tell
tell application "Adobe Photoshop CS"
open theFile
tell front document
do action "fotoname" from "MCACTIONS"
end tell
end tell
end repeat
EMAC, Mac OS X (10.4.8)