Created
November 22, 2011 13:56
-
-
Save chbeer/1385714 to your computer and use it in GitHub Desktop.
Small Apple Script that creates a mail with UUID of device
This file contains 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
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