AnsweredAssumed Answered

calculated AppleScript statement with Get(ScriptParameter) function

Question asked by lecompte on Jan 15, 2019
Latest reply on Jan 15, 2019 by CamelCase_data

I am trying to create a calculated AppleScript statement to open an external file in Preview using a Get(ScriptParameter) function to bring the file name into AppleScript - what punctuation (escape slashes quotes etc) need to surround the Get(ScriptParameter function?

 

"tell application \"Finder\"¶

  activate 

  open document file & get(ScriptParameter) & of folder \"Photo collection\" of folder \"Charley personal\" of disk \"Charley personal silver\" using application file \"Preview.app\" of folder \"Applications\" of startup disk  ¶

end tell"

Outcomes