• 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: Christopher Stone <email@hidden>
  • Date: Wed, 7 Jun 2017 00:19:21 -0500

On 06/04/2017, at 20:32, Jim Underwood <email@hidden> wrote:
However, it gets an error when I try this:

tell application "System Events"    
   set appNameList to every application process whose name is in my getList()
end tell

on getList()
   return {"Keyboard Maestro", "Finder", "Script Debugger"}
end getList

Any ideas/suggestions?


Hey Jim,

Yvan apparently didn't understand your question.

This is typical.  The way the Finder handles it is atypical.

Very few apps will allow you to use a list in that way.

Hamish could probably tell you exactly why ( if you could get past the profanity :), but I can't.

Whose clauses are very powerful, but they aren't consistent or well documented — and in the Finder since Yosemite they are slower than they used to be.

--
Take Care,
Chris

 _______________________________________________
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: 
 >Using a Handler with a Whose Clause (From: Jim Underwood <email@hidden>)

  • Prev by Date: Re: Setting a File or Folder Icon via AppleScript
  • Next by Date: Re: Copying a Safari Page's Text to a Mail Message
  • 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