bens Posted March 25, 2014 Posted March 25, 2014 When running this applescript from filemaker i get these errors: Expected end of line but found identifier., Unknown Error: -2741. The calculated applescript looks like this: "tell application "Finder"¶ set filestart to "" & $path & "" as string¶ set fileend to ""& $ftp & "" as string¶end tell¶tell application "Adobe Photoshop CS6"¶ open file filestart showing dialogs never¶ set myOptions to {class:Photoshop save options, embed color profile:false, save spot colors:false, save alpha channels:false, save annotations:false, save layers:false}¶ set openimg to current document¶ resize image openimg resolution 150.0 resample method bicubic¶ set myOptions to {class:Photoshop save options, embed color profile:false, save spot colors:true, save alpha channels:false, save annotations:false, save layers:true}¶ save current document in file fileend as Photoshop format with options myOptions appending no extension without copying¶ close openimg saving no¶end tell" When running the script to a field with the $path and $ftp it looks like this: tell application "Finder" set filestart to "billeder:1000:1000-italy.psd" as string set fileend to "ftp:Art:Inger:150dpi" as string end tell tell application "Adobe Photoshop CS6" open file filestart showing dialogs never set myOptions to {class:Photoshop save options, embed color profile:false, save spot colors:false, save alpha channels:false, save annotations:false, save layers:false} set openimg to current document resize image openimg resolution 150.0 resample method bicubic set myOptions to {class:Photoshop save options, embed color profile:false, save spot colors:true, save alpha channels:false, save annotations:false, save layers:true} save current document in file fileend as Photoshop format with options myOptions appending no extension without copying close openimg saving no end tell If i copy the above text to the applescript tool, and compile, it works fine. I have also tried to replace the : with /, but no effect. Is there anyone who, can see what i'm doing wrong?
bens Posted March 26, 2014 Author Posted March 26, 2014 I have found out how it shall be: tell application "Adobe Photoshop CS6" activate set filestart to "billeder:1000:1000-italy.psd" as string set fileend to "ftp:Art:Inger:150dpi" as string open file filestart set openimg to current document tell openimg resize image resolution 150.0 resample method bicubic end tell set myOptions to {class:Photoshop save options, embed color profile:false, save spot colors:true, save alpha channels:false, save annotations:false, save layers:true} save openimg in fileend as Photoshop format with options myOptions appending no extension without copying close openimg saving no end tell
Recommended Posts
This topic is 3893 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now