gcatnine

Perform Applescript - parsing error with "read" comand when the script is correct

Discussion created by gcatnine on Jan 14, 2017
Latest reply on Jan 15, 2017 by gcatnine

Product and version FileMaker Pro 15.0.2, FileMaker Pro Advance 15.0.2

OS and version OS X El Capitan 10.11.6

Hardware Mac Mini

Description

Script:

set fp to open for access file ":Users:gatto:Documents:temp_images:fileToRead"

set the clipboard to (read fp for 1000)

close access fp

 

this script runs without any error under OS X

 

in Filemaker I got this error: "Expected end of line, etc. but found identifier.

This is associated with the fp identifier after the read

after, in execution I got the error: Unknown Error -2741

 

After these two messages, at the end the script runs correctly

 

 

How to replicate

Create and run the script

Workaround (if any)

None for the moment

Outcomes