Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculated applescript no working

Featured Replies

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?

 
 
  • Author

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.