• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to determine the status of FMP tables in the Window menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to determine the status of FMP tables in the Window menu
      • From: Jon Pugh via AppleScript-Users <email@hidden>
  • Prev by Date: How to determine the status of FMP tables in the Window menu
  • Next by Date: Re: How to determine the status of FMP tables in the Window menu
  • Previous by thread: Re: How to determine the status of FMP tables in the Window menu
  • Next by thread: Re: How to determine the status of FMP tables in the Window menu
  • Index(es):
    • Date
    • Thread