Re: list of aliases
Re: list of aliases
- Subject: Re: list of aliases
- From: Michelle Steiner <email@hidden>
- Date: Tue, 26 Apr 2005 18:16:17 -0700
On Apr 26, 2005, at 5:05 PM, Jim Brandt wrote:
set theList to (every item of alias hold_folder whose kind is not
"folder") as alias list
works if there are two or more files (non-folders) in hold_folder but
fails if there is a single file in hold_folder.
The error is:
"Can't make alias \"HD1:InfoMac: Hold:asv2n0124.txt\" into a «class
alst»."
This is a long-standing deficiency in Applescript.
Is there a work-around for a single file situation?
Is there a need to make a one-item list? Here is a work around, though:
tell application "Finder"
set theList to item 1 of ((every item of alias hold_folder whose kind
is not "folder") & "")
end tell
-- Michelle
--
"Beware the march of ideas."
_______________________________________________
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