• 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: 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.

References: 
 >Re: filtering a list of items with Finder (From: has <email@hidden>)

  • Prev by Date: Re: importing images in quark
  • Next by Date: Re: using non-ascii chars on this mailing list
  • 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