Alias list inconsistency ?
Alias list inconsistency ?
- Subject: Alias list inconsistency ?
- From: Jay Louvion <email@hidden>
- Date: Thu, 26 Jun 2008 08:38:39 +0200
- Thread-topic: Alias list inconsistency ?
Title: Alias list inconsistency ?
Try this little snippet and please tell me there is a reason to (what seems like) this nonsense.
tell application "Finder"
set ImageFiles to (every file of folder (choose folder))
if length of ImageFiles is 1 then
set ImageFiles to ImageFiles as alias
else
display dialog "There is more than one file."
set ImageFiles to (ImageFiles as alias list)
end if
end tell
The result when there are more than one file is not returned as an alias list, but as a list of file references, Finder-style.
Thanks in advance for your take on this !
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