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.
Machine serial number
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
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:
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
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
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Machine serial number
Hi Mark and Don
I compare the function systemSerialNumber() of Mark.It return the same result like machineSerialNumber() of Supercard.
Regards
Jean-Marc
I compare the function systemSerialNumber() of Mark.It return the same result like machineSerialNumber() of Supercard.
Regards
Jean-Marc