Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7406 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted


--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

  • 1 year later...
  • Newbies
Posted

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!

This topic is 7406 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.