April 23, 200322 yr Hey Folks, I know this is do-able, but I haven't been able to find an example of how to do it. I'm trying to call an applescript from filemaker, then have that script return a value back to filemaker. Could someone post an example of setting a field (global or otherwise) in a particular filemaker file from an AppleScript? Thanks much, Jeff
April 24, 200322 yr --Your applescript code here --Assume the result is in variable MyAppleScriptVariable Tell document "MyDbase.fp5" of application "FileMaker Pro" Set cell "SomeGlobalField" of current record to MyAppleScriptVariable End Tell
August 13, 200421 yr Newbies Assuming that a FileMaker script invoked your sample Applescript, should the *same* FileMaker script then be able to continue from that point and *use* the value set in "SomeGlobalField"? I am trying something similar but seem to be in a race condition in which the called Applescript stalls and cannot set the field until the invoking FileMaker script terminates, which means that the FileMaker script cannot see the returned data. This in spite of telling the FileMaker script to wait for the Applescript to finish. Maybe I am doing something different from what you intend. I am telling an Applescript application to run, and all of the work is done in the run handler. Is there a better way? I'm learning Applescript and FileMaker at the same time. Many hours of fun!
Create an account or sign in to comment