Unique computer id

Ken Ray kray at sonsothunder.com
Thu Jul 21 16:57:11 CDT 2005


On 7/21/05 2:54 PM, "Shari" <shari at gypsyware.com> wrote:

> Ken,
> 
> On my system (OSX 10.2.8) it spits out:  "Error, Can't locate serial number."
> 
> When I launch Apple System Profiler manually, the System Profile
> shows "Customer serial number" under Hardware Overview as "Not
> Available."
> 
> But under "Devices and Volumes" under "Bus/Hard Drive" it shows a
> "Device Serial" with a serial number.  I have two hard drives listed
> and both show a serial number here.
> 
> Thinking that maybe it couldn't find Apple System Profiler (I'm
> notorious for moving things) I put it back where I *thought* it may
> have originally been... in the Applications folder.  Tried again,
> same result.
> 
> I also tried not filtering the report to see what it produced.
> 
> shell("system_profiler SPHardwareDataType") produced the following one line:
> 
> Usage: system_profiler [-xml]
> 
> So did shell("system_profiler SPIDEDataType")

Ah, that's right... they changed how system_profiler worked when they went
from 10.2 to 10.3... so the code will work on 10.3+ systems, but you
obviously need it for older systems, right? If so, how far back do you need
to go?

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the metacard mailing list