• 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: Jon Pugh via AppleScript-Users <email@hidden>
  • Date: Wed, 18 May 2022 14:26:10 -0700

On May 18, 2022, at 1:07 PM, Jenni via AppleScript-Users
<email@hidden> wrote:
>
>       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.

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.

Jon

 _______________________________________________
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: Jenni via AppleScript-Users <email@hidden>
    • Re: How to determine the status of FMP tables in the Window menu
      • From: Jenni via AppleScript-Users <email@hidden>
References: 
 >Re: How to determine the status of FMP tables in the Window menu (From: Jenni 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