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

Referencing a Filemaker variable within an Applescrpt?


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

Recommended Posts

Posted

I have a Filemaker script that sets a variable $tempvariable and then performs an Applescript. I would like to pass the value stored in $tempvariable to the Applescript -- something like

tell application "Filemaker Pro"

set thePassedValue to the variable "$tempvariable"

end tell

but this doesn't work.

I know that I could accomplish essentially the same thing by using a global field instead of a variable, but using a variable seems conceptually more appropriate.

Posted

I have a Filemaker script that sets a variable $tempvariable and then performs an Applescript. I would like to pass the value stored in $tempvariable to the Applescript -- something like

tell application "Filemaker Pro"

set thePassedValue to the variable "$tempvariable"

end tell

but this doesn't work.

I know that I could accomplish essentially the same thing by using a global field instead of a variable, but using a variable seems conceptually more appropriate.

Yes it works but You have to do a calculated script!

Which looks very wired because You have to include all the "" and "" and """ so after native filmmaker calculation Your Apple Script look's as it looks in a script editor.

Make Yourself a little Help file with calculated script ( all the ""...) and the result of the calculation. (Advanced data viewer does this too !!)

Before filmmaker performs a script it translates it ( calculates it).

Have a look at the solution forum, my file apple script printer switch to get an idea.

http://fmforums.com/forum/showtopic.php?tid/175183/

This topic is 6582 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.