• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Jan 2003 10:40:48 -0700

I'm getting some peculiar results with some code here.

set bar to (path to desktop)
tell application "Finder"
set foo to (folder of bar) --as alias list
end tell
log foo
foo

The log:

tell current application
path to desktop
alias "Dora:Users:michelle:Desktop:"
end tell
tell application "Finder"
get folder of alias "Dora:Users:michelle:Desktop:"
folder "michelle" of folder "Users" of startup disk
(*folder michelle*)
end tell

But the result window shows nothing.

Undelete "as alias list" in the above script, and the log shows:

tell current application
path to desktop
alias "Dora:Users:michelle:Desktop:"
end tell
tell application "Finder"
get folder of alias "Dora:Users:michelle:Desktop:"
alias "Dora:Users:michelle:"
"Can't make alias \"Dora:Users:michelle:\" into a <<class alst>>."

What gives?

--
"There's some good in the world, Mr. Frodo, and it's worth fighting for."
_______________________________________________
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.
  • Follow-Ups:
    • Re: Name of current users home folder (OS X)
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Name of current users home folder (OS X) (From: Reinhold Penner <email@hidden>)

  • Prev by Date: Re: Using AS to move mouse pointer?
  • Next by Date: Re: Using AS to move mouse pointer?
  • Previous by thread: Re: Name of current users home folder (OS X)
  • Next by thread: Re: Name of current users home folder (OS X)
  • Index(es):
    • Date
    • Thread