Skip to content

Instantly share code, notes, and snippets.

@Morse-Code
Created September 5, 2012 00:40
Show Gist options
  • Save Morse-Code/3628549 to your computer and use it in GitHub Desktop.
Save Morse-Code/3628549 to your computer and use it in GitHub Desktop.
Generic Access to User Home Folder
set myPath to POSIX path of (path to home folder)
display dialog "myPath is " & myPath
set myPath to (path to home folder) as string
display dialog "myPath is " & myPath
@Morse-Code
Copy link
Author

Define user home folder path

Generic way to define the current user home folder in an AppleScript. The standard UNIX "~" does not work in AppleScript and must be specified using the phrase "path to home folder".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment