Adrian Nier Code

Back to overview

Hardware UUID

Last modification: Friday, July 24, 2009 04:08 pm

Returns the universally unique identifier of the current Mac.

Function Calls

hardwareUUID()
 

Implementation

on hardwareUUID()
   -- With thanks to jaharmi.com
   do shell script "ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { split($0, line, \"\\\"\"); printf(\"%s\\n\", line[4]); }'"
end hardwareUUID