Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Passing a parameter with the do script function?

Featured Replies

Don't suppose anyone has found a way to pass a script parameter with the applescript "do script" command?

Do you mean something like this:

set myvar to "/Users"

set mylist to (do shell script "ls -l " & myvar) as text

display dialog mylist

Reese

  • 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

  • 1 year later...

I know this thread is way way old, but I am wondering if something like this is possible in FileMaker Pro 8.

I have an AppleScript that runs and gets a value. Now I would like to tell FileMaker to search for the value.

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.

  • 4 weeks later...

This looks like a perfect solution, thank you.

  • 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

 

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.