Jump to content
Server Maintenance This Week. ×

Passing a parameter with the do script function?


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

Recommended Posts

  • 3 weeks later...

I think he means something like this (pseudocode, this doesn't work):

tell app "Filemaker Pro"

do script fileMaker script "Export" script parameter "Whatever"

end tell

Link to comment
Share on other sites

  • 1 year later...

AppleScript can set a global field in FileMaker, before the script. You have to either have the global on the current layout, or specify its layout or table occurrence in AppleScript; otherwise it has no idea what table you're talking about.

Of course, AppleScript can also run a FileMaker Find, though the syntax is different. If you have FileMaker 7, I believe they still included a folder of example AppleScripts, in the FileMaker app folder. It's too bad they no longer do that. Too lazy to update them would be my guess. It's not like AppleScript's obsolete, far from it.

Link to comment
Share on other sites

  • 4 weeks later...
  • 12 years later...
On 10/6/2006 at 9:31 PM, Fenton said:

AppleScript can set a global field in FileMaker, before the script. You have to either have the global on the current layout, or specify its layout or table occurrence in AppleScript; otherwise it has no idea what table you're talking about.

I know this is mucho ancient but could you clarify this part...

Tried this, but no go:

tell application "FileMaker Pro" to tell database "myDB" to tell layout "Aux" to set cell "Aux::arguments_AuxWindow" of current record to 1

 

Link to comment
Share on other sites

If the file 'myDB' is open and in front, you can do simply:

tell application "FileMaker Pro" to set cell "Aux::arguments_AuxWindow" of current record to 1

If the field is global, then you can remove the "of current record" part (but the field still has to be on the layout of the foreground window).

Link to comment
Share on other sites

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