Re: How to test if FMP table is open?
Re: How to test if FMP table is open?
- Subject: Re: How to test if FMP table is open?
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Wed, 20 Apr 2022 16:27:44 -0700
I finally found it - it's the "exists" keyword. Makes sense once you
see it. 🙄
tell application "FileMaker Pro 18 Advanced"
with transaction -- prevents other Apple Events from talking to FMPro
while this xaction is running
set db_exists to database pw_db exists
if db_exists is false then
open filepath
delay 5
end if
...
I had written a loop that grabbed the name of each open database using
set db_name to name of database but that got progressively slower when more
db's were opened. Exists is fast no matter how many are open.
Hopefully this helps someone else.
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden