• 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
Filter for folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filter for folders


  • Subject: Filter for folders
  • From: Gilles Le Pors <email@hidden>
  • Date: Sat, 23 Mar 2002 15:27:07 +0100

YANQ,

I hope it hasn't been asked and answered a thousand times already:

Is it possible to get a list of the folders using a filtered reference instead of a repeat loop?

This works (French Mac OS X 10.1.3):

on open TheItems
set TheFiles to {}
repeat with AnItem in TheItems
tell application "Finder"
If kind of AnItem is not "Dossier" then
set TheFiles to TheFiles & AnItem
end if
end tell
end repeat
end open


This does not work:

on open TheItems
tell application "Finder" to set TheFiles [noBreak]
to every item of TheItems whose kind is not "Dossier"
end open


Thanks,

Gilles Le Pors
_______________________________________________
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: Filter for folders
      • From: Jean-Marie Hoornaert <email@hidden>
  • Prev by Date: Finding folder from its id
  • Next by Date: Re: Need help, please: duplicate file name
  • Previous by thread: Re: Finding folder from its id
  • Next by thread: Re: Filter for folders
  • Index(es):
    • Date
    • Thread