- Outside Filemaker: My script which includes these lines runs fine:
use framework "Foundation"
use scripting additions
set theList to current application's NSEvent's mouseLocation()
- Within Filemaker (Native Applescript): I get this error message:
"FileMaker Pro Advanced got an error: NSEvent doesn’t understand the “mouseLocation” message."
My workaround for the moment is to have Filemaker tell Finder to open the app and it runs. But I don't want to do that. Means I have to keep an external AS. I want to contain it in FM.
Does anyone know a fix for this?
Thanks much in advance.
I cannot reproduce the issue. I have the following running as Native AppleScript in FMPA v.17 (on High Sierra):
--
P.S. I am not sure why this line:
is needed; seems to run fine without it.