AnsweredAssumed Answered

Perform AppleScript Issue

Question asked by Danxyz on Feb 11, 2015
Latest reply on Feb 12, 2015 by Danxyz

Title

Perform AppleScript Issue

Post

I have an Applescript that works fine outside of Filemaker but is failing to compile inside Filemaker using the "Perform Applescript" script step.

The script opens a web page using Safari and copies the contents into the clipboard.  Then that content is written to a text file.  The relevant snippet is:

Set someText to the clipboard
Set myFile to open for access (path to documents folder as text) & "foo.text"
write someText to myFile
close access myFile

The compiler is failing at "write someText to myFile".   The error message is "Expected end of line, etc.. but found identifier.

Any ideas?

 

 

Outcomes