• 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 14:57:26 -0700

> On May 18, 2022, at 2:26 PM, Jon Pugh <email@hidden> wrote:
>
> I think the problem is the overuse of the name “db_status” as a function and
> as a variable. Change the variable’s name to “status_value” or something
> different and I suspect you’ll be good. I think setting db_status to a string
> stomps on the function, so you’re trying to execute a string the second time.

        Thanks, Jon.  I made the changes but it still gives the same error.

on db_status(db_name)
        set the_status to "closed"
        tell application "FileMaker Pro 18 Advanced"
                try
                        if window db_name is visible then
                                set the_status to "visible"
                        else
                                set the_status to "hidden"
                        end if
                end try
        end tell
        return the_status
end db_status

«script» doesn’t understand the “db_status” message.

        I also noticed another error in ScriptDebugger's Event Log that says:

the AppleEvent was not handled by any handler (errAEEventNotHandled:-1708)

        The strange thing is that if it's only called once, it's work fine.

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

References: 
 >Re: How to determine the status of FMP tables in the Window menu (From: Jenni via AppleScript-Users <email@hidden>)
 >Re: How to determine the status of FMP tables in the Window menu (From: Jon Pugh via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: 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