June 16, 201015 yr I'm trying to command a fairly long external Applescript to run from within FileMaker. Tried using a calculated Applescript like > "Run script ". This works however FileMaker will wait for the script to complete before continuing with the local FileMaker script. This is a problem as the external AS sends events back to FM - which won't respond until the AS finishes. Catch 22. Thought about compiling the script as an app and 'opening' it but the script seems to 'hard code' file paths when saved as an app - making path references in the AS invalid on deployed systems. Any Ideas?
June 16, 201015 yr The script will do what you tell it to do. If you don't want hard coded paths, write it differently. You can also do thing like use ignoring. ignoring application responses tell app "your_AS_App" activate end tell end ignoring
June 21, 201015 yr Author Thanks for your input but I think you have the problem back to front. The problem was that Filemaker normally waits for an Applescript to finish - AS doesn't wait for FM. Nevertheless - I've solved the problem by using the Send Event script and 'do script' to open a script file which is then executed. Send Event doesn't wait for feedback like the Perform applescript does.
Create an account or sign in to comment