Re: list of aliases
Re: list of aliases
- Subject: Re: list of aliases
- From: Adam Wuellner <email@hidden>
- Date: Tue, 26 Apr 2005 22:04:28 -0500
On 4/26/05, Jim Brandt <email@hidden> wrote:
> Is there a work-around for a single file situation?
Date: Wed, 17 Nov 2004 11:52:14 -0800
From: Paul Berkowitz <email@hidden>
To: AppleScript-Users <email@hidden>
Message-ID: <BDC0EBEE.7A3EAžemail@hidden>
In-Reply-To: <email@hidden>
Subject: Re: given a folder alias, get aliases to the contained files
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