Re: Using a Handler with a Whose Clause
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.
Jim Underwood
aka JMichaelTX
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