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: Andy Wylie <email@hidden>
- Date: Tue, 29 Oct 2002 19:23:36 +1300
on Mon, 28 Oct 2002 21:30:40 +0000 has wrote:
>
Andy Wylie wrote:
>
>
>>did you try the other example...
>
>
Alas, my attention was distracted by the pain in all the diodes down my
>
left side.
>
bzzzt.. have you considered a sacrificial anode?
>
>
>>set theApp to application "Finder"
>
>>
>
>>theApp's files & (theApp's items whose class = +AKs-class cfol+ALs)
>
>
Sorry bud... good try and all, but in OS X it just leaves another
>
smouldering crater. (But is this really any surprise?)
>
no surprise, still I'm curious what the 'smouldering crater' looks like.
The technique works in 8.6 and my desktop arranger is much faster.
>
>
I _really_ don't think the whose clause is up to the task (due to
>
bugs/incomplete implementation/other crap), and trying to hack it is just
>
asking for trouble.
>
I guess so, it would be nice to be able distribute simple scripts without
having to test and get tripped up by something so basic but holding the baby
before it's toilet trained looks like trouble aplenty too.
>
>
The following seems ok on OS9.2.2 and OS10.1.5:
>
<snip code>
>
>
If anyone can confirm/deny this works under other OS/AS versions it'd be
>
helpful, thanks.
>
it's OK under 8.6, do you need 'desktop'?...
tell application "Finder"
get files & my foldersOf(it)
end tell
or
get application "Finder"'s files & foldersOf(application "Finder")
sorry :)...retiring to cave to script exclusively for 8.6 in raw code.
_____________________________ Andy
_______________________________________________
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.