Marc Anthony wrote:
tell application "Finder" to ((path to documents
folder)'s entire contents's folders whose name is in my getList())
on getList()
tell application "Mail" to inbox's
message's subject
end getList
Marc et al: I've very impressed with this whose clause. I've never seen anything like it, but would like to make use of this pattern.
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
(*
=== ERROR ===
System Events got an error: Can’t make {"Keyboard Maestro", "Finder", "Script Debugger"} into type specifier.
*)
Any ideas/suggestions?
TIA.