Bizarre error message
Bizarre error message
- Subject: Bizarre error message
- From: Mr Tea <email@hidden>
- Date: Fri, 12 Dec 2003 17:17:12 +0000
While attempting to reconstruct a lost script for a customised 'hide others'
routine, I generated an error message that made no sense. After failing to
get 'every process whose name is not in {"DragThing, iChat"}', because of an
'nscannotunderstandwhatthismeans error', I tried a variety of permutations
and came up with this.
property xList : "DragThing, iChat"
tell application "Finder"
set procs to every process whose frontmost is false and visible is true
set procs2 to every item of procs whose name is not in xList
end tell
I'm not inviting incredulous comments from more experienced scripters who
would have known instinctively that the last line of that script before the
'end tell' was doomed to failure. Let's focus instead on the curious error
message generated. Here it is:
Can't get {application process "Finder" of application "Finder", application
process "DragThing" of application "Finder", application process "iTunes" of
application "Finder", application process "Safari" of application "Finder",
application process "StickyBrain" of application "Finder"} whose not 32.
32 ? What's going on there?
BTW - the actual syntax I needed was as follows:
tell application "Finder" to set visible of every process whose frontmost is
false and visible is true and name is not "DragThing" and name is not
"iChat" to false -- (all on one line)
Nick
pp Mr Tea
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.