Created
November 24, 2021 20:30
-
-
Save macmule/2a1bba3f4efe1ca2f14ada08dd832f07 to your computer and use it in GitHub Desktop.
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
| -- Get the nodeName from the Users account | |
| set nodeName to do shell script "dscl . -read /Users/" & loggedInUser & " | awk '/^OriginalNodeName:/,/^Password:/' | head -2 | tail -1 | cut -c 2-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment