Page 1 of 1
Machine serial number
Posted: Fri Jun 12, 2009 6:46 pm
by Don Pederson
How do I get the machine serial number of a mac from a revolution script?
We want to authorize machines to use our software by checking the machine serial number.
Posted: Fri Jun 12, 2009 10:08 pm
by Mark
Hi Don,
You should keep in mind that there are Macs that don't have a serial number (anymore) and that there is software to change this number.
The following function only works on Macs with an unmodified logic board:
Code: Select all
function systemSerialNumber
put shell("system_profiler SPHardwareDataType") into mySysInfo
return last word of line lineoffset("Serial Number",mySysInfo) of mySysInfo
end systemSerialNumber
Actually, I have only 1 Mac, out of 3 running Mac OS X, on which this function works. Also, I am not even sure whether this should work with all versions of Mac OS X (and a pristine hardware configuration).
Best,
Mark
Machine serial number
Posted: Tue Jun 16, 2009 9:36 pm
by jmburnod
Hi Mark and Don
I compare the function systemSerialNumber() of Mark.It return the same result like machineSerialNumber() of Supercard.
Regards
Jean-Marc