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.

tell application > tell database > do script

Featured Replies

Doesn't the following handler correctly express the database to which I am addressing the 'do script' command? According to the behavior (it always runs the script within "People.fp5") and the event log below, the "tell database" statement is being ignored. This is part of a stand-alone applescript.

Thank,

Chap

on export(theDatabase)

display dialog "theDatabase is currently: " & theDatabase

try

tell application "FileMaker Pro"

tell database theDatabase

do script gFMExportScriptName -- constant, set to "Export"

end tell

end tell

on error myErr

display dialog myErr

end try

end export

-- Event Log --

B)

tell current application

display dialog "theDatabase is currently: Courses.fp5"

{button returned:"OK"}

end tell

tell application "FileMaker Pro"

do script "Export"

end tell

B)

  • 1 month later...
  • Author

Mandu,

I feel your pain, buddy. I'm having the same problem, I think:

I have an AS loading an Invoices and a LineItems db. I'm able to reliably fire off FM scripts in Invoices with expressions of the form:

tell application "FileMaker Pro"

tell database gFMPInvoicesTable

do script gFMPDisplayProgressScript

end tell

end tell

But the following, addressed to my LineItems table, always gags on the 'do script' command, with "Object not found."

tell application "FileMaker Pro"

tell database gFMPLineItemsTable

try

do script "Relookup"

on error myErrMsg

display dialog "WTF? " & myErrMsg

error myErrMsg

end try

end tell

end tell

If it reached "Relookup" I'd see a big "Welcome" message, so I know I'm not getting that far.

Wonder how to do it???

What does work is the more correct term:

do script FileMaker script "Relookup"

Though just "do script" doesn't create an error, it always just runs in the last active database file.

  • Author

Thanks, Fenton. That puts to rest a recurring mystery.

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.