Re: getting hardware ID
Re: getting hardware ID
- Subject: Re: getting hardware ID
- From: Sander Tekelenburg <email@hidden>
- Date: Fri, 21 Dec 2001 06:06:35 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 00:50 +0100 UTC, on 21-12-2001, email@hidden wrote:
>
[...] Could somebody tell me how can I get a unique identifier machine with
>
applescript?
>
(that is : "serial number on hard disk" or "serial number on motherboard"
>
or any other that identify universally a cpu)
You can get its MAC address thusly:
try
-- use "Network Info" OSAX if available
set MACaddress to ethernet address of (get network information)
on error -- "Network Info" OSAX not available, use "Apple System Profiler"
tell application "Apple System Profiler"
set MACaddress to AppleTalk address
quit
end tell
end try
I think Apple System Profiler only supports this since (about) Mac OS 9.0.
The "Network Info" OSAX will probably work on older OSs. It's much faster
anyway, and doesn't require launching Apple System Profiler.
>
Please send me answer to my address mailto:email@hidden
I don't see why. If you can post to the list, you can read it. Keeping things
on the list has the advantage that we can all learn from each other.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBPCLCyOsywKfXgqKdEQLViACg7HM032P1am9m0Tq7tBvB4e5XpcMAn14A
mvVxpTLx7dZ0MiqCm9YYuKos
=N10c
-----END PGP SIGNATURE-----
--
Sander Tekelenburg