Re: How to determine the status of FMP tables in the Window menu
Re: How to determine the status of FMP tables in the Window menu
- Subject: Re: How to determine the status of FMP tables in the Window menu
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Wed, 18 May 2022 13:07:02 -0700
After some experimentation, I wrote something that works:
on db_status(db_name)
set db_status to "closed"
tell application "FileMaker Pro 18 Advanced"
try
if window db_name is visible then
set db_status to "visible"
else
set db_status to "hidden"
end if
end try
end tell
return db_status
end db_status
However, when I call this handler more than once in the same script, I
get this error on the 2nd call:
«script» doesn’t understand the “db_status” message.
Just to get my script to work, I duplicated the handler and named the
other copy something else. That way, I can call it "twice" and at least use
the script, but this is only a temporary solution.
Does anyone know why there's a problem calling this handler multiple
times in the same script?
Thanks,
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