• 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: Path to ~/
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to ~/


  • Subject: Re: Path to ~/
  • From: Nigel Smith <email@hidden>
  • Date: Fri, 12 Apr 2002 13:59:31 +0100

Simon Said:

> Getting the path to a users folder in OS X seems a bit convoluted. At the
> moment I'm getting the path to the users desktop and then taking a step
> back to get the users root folder ("~/" in unix land). Is there a way to
> get the user's root directory directly (and say that half a dozen time
> quickly)?

tell application "Finder"
return home
end tell

Or

tell application "Finder"
return home as alias
end tell

Depending on your preference...

HTH,

Nigel
_______________________________________________
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: Path to ~/ (From: Matthew Stuckwisch <email@hidden>)

  • Prev by Date: Re: Path to ~/
  • Next by Date: Check POP3 for new mail
  • Previous by thread: Re: Path to ~/
  • Next by thread: Re: Path to ~/
  • Index(es):
    • Date
    • Thread