• 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
Bizarre error message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Bizarre error message
      • From: Michelle Steiner <email@hidden>
    • Re: Bizarre error message
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Sort in Finder (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Insert text into a document (beginners Question)
  • Next by Date: Re: list disks on Panther
  • Previous by thread: Re: Sort in Finder
  • Next by thread: Re: Bizarre error message
  • Index(es):
    • Date
    • Thread