louk

Applescript NSEvent fails in Filemaker

Discussion created by louk on Feb 11, 2019
Latest reply on Feb 20, 2019 by louk
  • 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.

Outcomes