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: Philip Aker <email@hidden>
- Date: Tue, 29 Oct 2002 00:01:45 -0800
On Monday, Oct 28, 2002, at 13:30 US/Pacific, has wrote:
The following seems ok on OS9.2.2 and OS10.1.5:
[...]
If anyone can confirm/deny this works under other OS/AS versions it'd
be helpful, thanks.
Works good in OS 10.2. Here's the comment-stripped variant from the
western shores of the Pacific:
on GetFoldersOfContainer(theContainer)
set res to {}
tell application "Finder"
repeat with iref in (get folders of theContainer)
if iref's class is folder then
set res's end to iref's contents
end if
end repeat
end tell
return res
end GetFoldersOfContainer
tell application "Finder"
GetFoldersOfContainer(desktop)
end tell
Best wishes,
Philip Aker
http://www.aker.ca
Freedom of the press? America, look where you're at:
http://www.rsf.fr/article.php3?id_article=4116
_______________________________________________
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.