Re: filtering a list of items with Finder
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.