• 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: Name of current users home folder (OS X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of current users home folder (OS X)


  • Subject: Re: Name of current users home folder (OS X)
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 28 Jan 2003 10:55:13 -0800

On 1/28/03 9:40 AM, "Michelle Steiner" <email@hidden> wrote:

> alias "Dora:Users:michelle:"
> "Can't make alias \"Dora:Users:michelle:\" into a <<class alst>>."
>
> What gives?

It's a very long-standing bug in 'alias list', ever since it was invented,
which I referred to only two days ago. 'alias list' fails when there's only
one item. So you always have to:

set foo to (folder of bar) as alias as list

in that case. To cover all cases:

tell app "Finder"
try
set foos to theItems as alias list
on error -- only one item present
set foos to theItems as alias as list
end try
end tell

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Name of current users home folder (OS X) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Name of current users home folder (OS X)
  • Next by Date: Re: Name of current users home folder (OS X)
  • Previous by thread: Re: Name of current users home folder (OS X)
  • Next by thread: Re: Printing to PDF in Microsoft Word
  • Index(es):
    • Date
    • Thread