Building in serial number scheme

Geoff Canyon gcanyon at inspiredlogic.com
Sun Jan 20 03:31:00 EST 2002


At 2:08 PM -0800 1/19/02, Rob Cozens wrote:
>on getSerial()
>	tell application "Apple System Profiler"
>		launch
>		copy SerialNumber to myNumber
>		quit application "Apple System Profiler"
>	end tell
>	return myNumber
>end getSerial

Funny that quit doesn't work. On my computer, at least, this does:

close window 1

Try that instead of the quit command.

I started out way back when with a serial number scheme based on the user's name. I was fairly pleased with the algorithm, but I don't use serial number protection any more. If someone's curious, I'll dig it out.

regards,

Geoff



More information about the use-livecode mailing list