McScripta Posted March 7, 2019 Posted March 7, 2019 I'm familiar with utilizing Calculated AppleScript or setting a global field to a value and then reading it from AppleScript. But is there a direct method for AppleScript to get a FM global variable from outside of the FM application, ie. for AS app, is there a way to say: tell application "FileMaker Pro" to tell database "myDB" to set v to { get filemaker global variable named "gv" }
OlgerDiekstra Posted March 7, 2019 Posted March 7, 2019 Don't have a Mac so can't test for you, and don't know too much about AppleScript. Can you invoke a FM script with AppleScript? If so, can you grab the exit value if one is specified in the FM script? (ie, Exit Script [ value ])? If yes, you could create a simple script that returns only the global variable you're after.
comment Posted March 7, 2019 Posted March 7, 2019 On 3/7/2019 at 2:01 AM, McScripta said: is there a direct method for AppleScript to get a FM global variable from outside of the FM application Expand No.
McScripta Posted March 8, 2019 Author Posted March 8, 2019 On 3/7/2019 at 3:51 AM, OlgerDiekstra said: Can you invoke a FM script with AppleScript? If so, can you grab the exit value if one is specified in the FM script? (ie, Exit Script [ value ])? If yes, you could create a simple script that returns only the global variable you're after. Expand Thanks for suggesting it. Yes I can invoke FM script but to my knowledge it will not return its result to AS... I'm afraid @comment is right about this one.
comment Posted March 8, 2019 Posted March 8, 2019 On 3/8/2019 at 1:19 AM, McScripta said: to my knowledge it will not return its result to AS Expand Correct, it won't. Why can't you use a global field?
Recommended Posts
This topic is 2281 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 accountSign in
Already have an account? Sign in here.
Sign In Now