Filter for folders
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.