• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: list of aliases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >list of aliases (From: Jim Brandt <email@hidden>)

  • Prev by Date: list of aliases
  • Next by Date: Re: list of aliases
  • Previous by thread: list of aliases
  • Next by thread: Re: list of aliases
  • Index(es):
    • Date
    • Thread