Jump to content

Referencing a Filemaker variable within an Applescrpt?


mweiss
 Share

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

Recommended Posts

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

This topic is 5799 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
 Share

×
×
  • Create New...

Important Information

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