Perform AppleScript Issue
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.