AppleScript code to get the value of the home folder using "path to" and "home folder"
This is a AppleScript code snippet to get the path value of the home folder (e.g, "iBook Hard Drive:Users:stevejobs:").
set myPath to (path to home folder) as string display dialog "myPath is " & myPath