Re: Files in a Folder
Re: Files in a Folder
- Subject: Re: Files in a Folder
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 09 Aug 2001 18:16:09 -0700
On 8/9/01 5:38 PM, "Timothy Bates" <email@hidden> wrote:
>
> On 8/9/01 12:18 PM, Joachim Georgii <email@hidden> wrote:
>
>> In fact, I need the labeled files of the folder. Any suggestions??
>
tell application "Finder"
>
(every file of myFolderAlias whose label index is not 0) as alias list
>
end tell
>
>
Bearing in mind that there is an AppleScript bug in alias list such that if
>
1 and only 1 item is found, alias list returns an error - duh!
>
Bearing that bug in mind, it's best to do:
tell application "Finder"
try
(every file of myFolderAlias whose label index is not 0) as alias
list
on error
(every file of myFolderAlias whose label index is not 0) as alias
as list
end try
end tell
--
Paul Berkowitz