Modal window blocks an applescript
Operating system version
OS X 10.10
Description of the issue
Applescript executed by a script triggered from a modal window returns error -1712, fails. Same Applescript executed by a script triggered from a normal "Document" window works fine.
Steps to reproduce the problem
Call a script that runs an Applescript from a FM modal window. Applescript has some interaction with FileMaker, such as:
set lookup_value to get data cell "LDAP_LOOKUP_VALUE"
set shell_script to ...
set ldap_result to do shell script shell_script as text
set data cell "LDAP_RESULT" to ldap_result
Applescript is able to do its thing.
Applescript is thwarted by the modal window, and times out.
Exact text of any error message(s) that appear
Error -1712 returned by FileMaker Get ( lasterror )
Close the modal window and run the scripted process in the context of a non-modal window.