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.

Applescript FMP5 Multiple Find

Featured Replies

  • Newbies

APPLESCRIPT PROBLEM: I need to write an applescript to perform a multiple FIND on a Mac FMP5 database.

For example: To show records whose field "Name" contains "A","B","K", or "N"

(in manual FIND mode I would simply use Command N to add each new criteria)

My starting point is:

tell application "Filemaker Pro"

show (every record in database "myDatabase" whose cell "Name" = "A")

end tell

This successfully shows the "A" record.

Many tries later, I still can't find the correct language to extend the command to show all four records ("A","B","K","N").

It can't be that hard. Can someone please embarrass me?

BobH

Hello,

A simple way to work is working with "requets" and "find".

try this :

set theRequests to {"A","B","K","N"}

tell application "FileMaker Pro"

show every record of database "myDatabase"

delete every request of database "myDatabase"

repeat with x from 1 to count theRequests

set crre to create request

set cell "Name" of crre to (item x of theRequests)

end repeat

find

delete every request of database "myDatabase"

end tell

  • Author
  • Newbies

JM -- Perfect solution...You have only been registered 4 days

and you have saved at least one project already!!! Many thanks.

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.