My task : import records from FileMaker pro-7 to MYOB -Error while write command
From FileMaker i am calling applescript by command
“Perform Applescript”, in this command passing applescript as native applescript.
When i run this script through applescript, it works , i mean it imports records successfully.
But when i try this script by pasting in FM pro mentioned as above, it passes error as
“Expected end of line, etc. but found identifier.(Error-2741)”
This error identifies error line as
“Write exportText to FileRef”
For more clarification some related codelines are as below…
set fileRef to Open for access file SavePath with write permission
set eof fileRef to 0
write exportText to fileRef --Error “Expected end of line, etc. but found identifier.(Error-2741)”
close access fileRef
FileMaker Pro 7.0v1
Mac OZ X version 10.3.9
ScriptEditor 2.0(v43.1)
Applescript 1.9.3