FileMaker returning “No user interaction allowed.”

I’m trying to create a script that opens a FIleMaker database from within another FIleMaker database. The code is extremely simple:

open "[POSIX path to file]"

It works fine in AppleScript Editor. It works fine in Script Debugger. It just doesn’t work fine in FileMaker. I’ve tried adding a tell statement, tried enclosing it in try, tried doing everything I can think of; yet no matter what I do, it returns two successive error dialogs:

No user interaction allowed.

.and.

Unknown Error: -1713.

Any ideas? :expressionless:

What if you type:

tell application "Finder" to open POSIX file "[POSIX path to file]"

or

do shell script "open " & quoted form of "[POSIX path to file]"

or


tell application "System Events" to set fileURL to URL of disk item (POSIX file "[POSIX path to file]" as string)
open location fileURL

Either way, all three scripts eventually use the GURLGURL AppleEvent which is handled by the system.

Perfect! Now if I can just figure out how to get FileMaker to wait for the file to open before continuing with the script, I’ll be golden! :smiley: