• 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: Using a Handler with a Whose Clause
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a Handler with a Whose Clause


  • Subject: Re: Using a Handler with a Whose Clause
  • From: Jim Underwood <email@hidden>
  • Date: Mon, 5 Jun 2017 20:31:10 +0000
  • Thread-topic: Using a Handler with a Whose Clause

Thanks for confirming that, Ed.

That is what I had been doing, but when I saw Marc's whose clause it made me curious.

Best Regards,

Jim Underwood
aka JMichaelTX


From: AppleScript-Users <applescript-users-bounces+jmichael=email@hidden> on behalf of "Stockly, Ed" <email@hidden>
Date: Monday, June 5, 2017 at 3:10 PM
Cc: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Using a Handler with a Whose Clause

To simplify your script remove the handler to see if the whose clause will work with a list. 

It doesn't.
 


tell application "System Events"

setappNameList to every application process whose nameis in {"Keyboard Maestro", "Finder", "Script Debugger"} 

end tell


To accomplish this you'll need to get the name of every application process then step through your list of targeted applications and find which ones are in both.


 _______________________________________________
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: Using a Handler with a Whose Clause (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Using a Handler with a Whose Clause
  • Next by Date: Re: Using a Handler with a Whose Clause
  • Previous by thread: Re: Using a Handler with a Whose Clause
  • Next by thread: Re: 10.12.5 at work.
  • Index(es):
    • Date
    • Thread