• 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: filtering a list of items with Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filtering a list of items with Finder


  • Subject: Re: filtering a list of items with Finder
  • From: has <email@hidden>
  • Date: Mon, 28 Oct 2002 10:57:06 +0000

Andy Wylie wrote:

[paraphrased code]

set theDesktop to <<class desk>> of application "Finder"
get items of theDesktop whose class is not in {<<class cdis>>, <<class
trsh>>}

As hideous to look at as it is clever<g>. Unfortunately, I have bad news...

Although it filters out disks it doesn't exclude the Trash, not on
OS9.2.2/AS1.6 anyway. (I expect there's hacks available to put Trash onto
the OS X desktop, but I'm not about to test that.)


Also, the following doesn't work:

set classDisk to +class cdis;
tell application "Finder"
get items of desktop whose class is classDisk
end tell
--> {}


Good try, but too many funny smells for my comfort. (Makes you wanna get
all Annie Wilkes* on some Apple engineers, dunnit?;)

has

* [http://us.imdb.com/Title?0100157]

--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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: filtering a list of items with Finder
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: filtering a list of items with Finder
  • Next by Date: Re: filtering a list of items with Finder
  • Previous by thread: Re: filtering a list of items with Finder
  • Next by thread: Re: filtering a list of items with Finder
  • Index(es):
    • Date
    • Thread