Re: Coercing document list to alias list
Re: Coercing document list to alias list
- Subject: Re: Coercing document list to alias list
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 8 Dec 2006 13:26:09 +0100
Hello
You used a wrong syntax and other responces forgot a Finder bug.
I often uses this kind of code.
tell application "Finder"
set TheFolder to choose folder
try
set TheContent to (every file of TheFolder) as alias list
on error (*
Here when the folder contains a single file *)
set TheContent to {(first file of TheFolder) as alias}
end try
end tell
The try code is required because the first set TheConten instruction
fails when the folder contains a single file.
Yvan KOENIG
_______________________________________________
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