Created
September 5, 2012 00:40
-
-
Save Morse-Code/3628549 to your computer and use it in GitHub Desktop.
Generic Access to User Home Folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set myPath to POSIX path of (path to home folder) | |
display dialog "myPath is " & myPath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set myPath to (path to home folder) as string | |
display dialog "myPath is " & myPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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".