Re: Alias list inconsistency ?
Re: Alias list inconsistency ?
- Subject: Re: Alias list inconsistency ?
- From: Jay Louvion <email@hidden>
- Date: Thu, 26 Jun 2008 10:45:01 +0200
- Thread-topic: Alias list inconsistency ?
Title: Re: Alias list inconsistency ?
On 26.06.2008 9:36, "Joe" <email@hidden> spake thus:
Apologies. I'm half asleep. You probably were trying something like this.
tell application "Finder"
set x to every file of (choose folder) as alias list
end tell
if length of x is 1 then
set x to x as alias
end if
x
Joe
Mmh... Or maybe quite asleep ;P
When there is only one file, the script will error out on the second line.
I have found another way to do it*, but I don’t understand why my first proposition wich seems quite logical doesn’t work or even error out.
*(
set FileList to {}
tell application "Finder"
set FolderContent to (every file of folder ClientFolder)
repeat with oneFile in FolderContent
set ImageFiles to ImageFiles & (oneFile as alias)
end repeat
end tell
)
I think my REAL question is: Is this a bug ?
Best,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden