Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save macmule/2a1bba3f4efe1ca2f14ada08dd832f07 to your computer and use it in GitHub Desktop.

Select an option

Save macmule/2a1bba3f4efe1ca2f14ada08dd832f07 to your computer and use it in GitHub Desktop.
-- 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