Re: Coercing document list to alias list
Re: Coercing document list to alias list
- Subject: Re: Coercing document list to alias list
- From: Axel Luttgens <email@hidden>
- Date: Fri, 08 Dec 2006 11:07:18 +0100
On 8/12/06 10:38, Jay Louvion wrote:
Coercing document list to alias list
Hi all,
Am I too naive ? I genuinely thought I could do the following and get
an alias list:
tell application
"Finder"
set TheFolder
to choose
folder
set TheContent to
(every file
of TheFolder)
set TheContentAsAlias
to TheContent
as alias
list
end tell
Unless I'm wrong, in Finder's dictionary, "as alias list" is not a
coercion operator; its use is to ask the Finder to return a list of
aliases instead of a list of Finder references as the result of a
command.
So, you need to write something like this:
set
TheContentAsAlias to
every
file of
TheFolder as alias list
HTH,
Axel
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden