Skip to content

Instantly share code, notes, and snippets.

@chbeer
Created November 22, 2011 13:56
Show Gist options
  • Save chbeer/1385714 to your computer and use it in GitHub Desktop.
Save chbeer/1385714 to your computer and use it in GitHub Desktop.
Small Apple Script that creates a mail with UUID of device
do shell script "system_profiler SPHardwareDataType | grep 'Hardware UUID:'"
set uuid to text ((offset of ":" in result) + 2) thru -1 of result
tell application "Mail"
set theNewMessage to make new outgoing message with properties {subject:"Mac App Beta - My UUID", content:uuid, visible:true}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:"[email protected]"}
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment