AnsweredAssumed Answered

Modal window blocks an applescript

Question asked by l_allen_poole on Oct 22, 2014
Latest reply on Oct 27, 2014 by TSGal

Summary

Modal window blocks an applescript

Product

FileMaker Pro

Version

13.0 v3

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

Expected result

Applescript is able to do its thing.

Actual result

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 )

Workaround

Close the modal window and run the scripted process in the context of a non-modal window.

Outcomes