Re: Unique ID
Re: Unique ID
- Subject: Re: Unique ID
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 31 Jan 2002 01:00:21 -0500
- Organization: [very little]
>
From: "Chris Wood" <email@hidden>
>
To: email@hidden
>
Subject: Unique ID
>
Date: Thu, 31 Jan 2002 02:16:07 +0000
>
>
Hi All,
>
>
I need to incorporate into an existing script a sneaky way of preventing
>
users copying a script onto another computer. Compare a constant with a
>
machine variable and exit if they don't match is my best idea. Startup disk
>
name is too simple, returning comments of say the startup disk is quite easy
>
to break, what about accessing the harddisk serial number/ethernet address?
>
Has anybody got any ideas on this.
tell application "Finder" to set theApp to application file id "prfc" as text
tell application theApp
tell application "Apple System Profiler"
set x to serial number
end tell
end tell
The drawback to this approach is that it takes quite a long time for the
application to load, run, and return the serial number. You probably
don't want to do that every time the script runs.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[1/31/02 12:55:06 AM]