• 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: "Stockly, Ed" <email@hidden>
  • Date: Mon, 5 Jun 2017 20:10:05 +0000
  • Thread-topic: 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

  • Follow-Ups:
    • Re: Using a Handler with a Whose Clause
      • From: Jim Underwood <email@hidden>
    • Re: Using a Handler with a Whose Clause
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Finder preferences
  • 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: Using a Handler with a Whose Clause
  • Index(es):
    • Date
    • Thread