• 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 Skinner <email@hidden>
  • Date: Tue, 28 Jan 2003 19:49:22 -0500

On Tuesday, January 28, 2003, at 02:18 PM, Gnarlodious wrote:

Entity Mr Tea spoke thus:

set homeFldr to path to current user folder
Gnarly sez: "We don't need no stinkin' simpolicity";

set tid to ":"
set userHome to items 2 thru -1 of (words 2 thru -4 of paragraph 2 of (do shell script ("finger " & (system attribute "USER")))) as text

That returns "paulskin" for me here, but how about...

((POSIX file ((system attribute "HOME") & "/")) as string) as alias
-->alias "titan:Users:paulskin:"

--
Paul Skinner
_______________________________________________
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: Philip Aker <email@hidden>
References: 
 >Re: Name of current users home folder (OS X) (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: New technote for "do shell script"
  • Next by Date: Localized versions of AppleScript?
  • 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