July 10, 200817 yr I have an Applescript that runs a FM script via the 'do script' AppleScript command. What I want is for the FM script that runs to do some work and then return a text value back to the AppleScript. The last step of the FM script is 'Exit Script' with a text 'result' value set. The problem is that the 'do script' AppleScript step is not returning the FM Script's 'result' value -- presumably because the return value is only getting passed to a calling FM script, not an AppleScript. I'm wondering if there is some other way to do this. Obviously I could have the Applescript proceed on, wait awhile, and then check either a FM global var or the clipboard for a return value. But both of those options are problematic. I am hoping to get a direct return value from FM. Here is my applescript code: tell application "FileMaker Pro Advanced" tell document 1 set myvalue to do script "myFMScript" end tell end tell Whenever this is run, I get an error stating that 'do script' does not return a value. Thanks. John Edited July 10, 200817 yr by Guest
Create an account or sign in to comment