Re: given a folder alias, get aliases to the contained files
Re: given a folder alias, get aliases to the contained files
- Subject: Re: given a folder alias, get aliases to the contained files
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 17 Nov 2004 11:52:14 -0800
On 11/17/04 11:45 AM, "Adam K. Wuellner" <email@hidden>
wrote:
> Is there a better way than:
>
> tell application "Finder" to set theFiles to files of aFolder
> repeat with i from 1 to count of theFiles
> set item i of theFiles to item i of theFiles as alias
> end repeat
tell application "Finder"
try
set theFiles to files of aFolder as alias list
on error -- if only one file 'as alias list' will error!
set theFiles to files of aFolder as alias as list
end try
end tell
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden