Disk serial numbers

Ken Ray kray at sonsothunder.com
Wed Mar 12 18:20:01 EST 2003


That should be no problem. Apple System Profiler provides that
information in OS X, but returns it as Unicode text:

tell application "Apple System Profiler"
  get the system profile
end tell

You can't run it effectively in Script Editor, as you can only see the
first 20000 characters in the Result window, but at least you'll get a
feel for how things are formatted. I'll see what I can come up with as a
function to do this in MC...

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


> -----Original Message-----
> From: metacard-admin at lists.runrev.com 
> [mailto:metacard-admin at lists.runrev.com] On Behalf Of Monte Goulding
> Sent: Wednesday, March 12, 2003 3:42 PM
> To: metacard at lists.runrev.com
> Subject: RE: Disk serial numbers
> 
> 
> Hi Sorry
> 
> I meant the serial number
> 
> Thanks
> 
> Monte
> 
> > -----Original Message-----
> > From: metacard-admin at lists.runrev.com 
> > [mailto:metacard-admin at lists.runrev.com]On Behalf Of Ken Ray
> > Sent: Thursday, 13 March 2003 7:58 AM
> > To: metacard at lists.runrev.com
> > Subject: RE: Disk serial numbers
> > 
> > 
> > Well, with Macs, you can check "the drives" to see if the 
> disk you're 
> > expecting is mounted. Although this doesn't tell you if there's 
> > nothing in the CD drive, it takes you a lot farther than in 
> Windows. 
> > If you really need to know if there's nothing in the CD 
> drive, let me 
> > know, and I'll hunt around for it.
> > 
> > Ken Ray
> > Sons of Thunder Software
> > Email: kray at sonsothunder.com
> > Web Site: http://www.sonsothunder.com/
> > 
> > > -----Original Message-----
> > > From: metacard-admin at lists.runrev.com
> > > [mailto:metacard-admin at lists.runrev.com] On Behalf Of 
> Monte Goulding
> > > Sent: Wednesday, March 12, 2003 3:05 PM
> > > To: metacard at lists.runrev.com
> > > Subject: RE: Disk serial numbers
> > > 
> > > 
> > > HI Ken
> > > 
> > > Can you get this info on OS X?
> > > 
> > > Thanks
> > > 
> > > Monte
> > > 
> > > > -----Original Message-----
> > > > From: metacard-admin at lists.runrev.com
> > > > [mailto:metacard-admin at lists.runrev.com]On Behalf Of Ken Ray
> > > > Sent: Thursday, 13 March 2003 7:13 AM
> > > > To: metacard at lists.runrev.com
> > > > Subject: RE: Disk serial numbers
> > > > 
> > > > 
> > > > Hey, Richard! You have something there... if you do a shell
> > > to switch
> > > > to a drive (like "D:") and there's no media in the drive,
> > > it's return
> > > > "The device not ready." under XP, and it DOESN'T throw up a
> > > dialog box
> > > > in your face!
> > > > 
> > > > Now all you know is that the device isn't ready (not
> > > necessarily that
> > > > there's no media in the drive), but 99% of the time it
> > > would be giving
> > > > that response because of no media.
> > > > 
> > > > Good catch!
> > > > 
> > > > Ken Ray
> > > > Sons of Thunder Software
> > > > Email: kray at sonsothunder.com
> > > > Web Site: http://www.sonsothunder.com/
> > > > 
> > > > > -----Original Message-----
> > > > > From: metacard-admin at lists.runrev.com 
> > > > > [mailto:metacard-admin at lists.runrev.com] On Behalf Of
> > > Richard Gaskin
> > > > > Sent: Wednesday, March 12, 2003 12:47 PM
> > > > > To: metacard at lists.runrev.com
> > > > > Subject: Re: Disk serial numbers
> > > > > 
> > > > > 
> > > > > Ken Ray wrote:
> > > > > 
> > > > > > 
> > > > > > CDs have serial numbers as well... you can retrieve it this 
> > > > > > way:
> > > > > > 
> > > > > > 
> http://www.sonsothunder.com/devres/metacard/metacard.htm?disk0
> > > > > > 01
> > > > > 
> > > > > Wouldn't calling the DOS dir command on a series of devices 
> > > > > throw an exception in XP for those devices without media in 
> > > > > them?
> > > > > 
> > > > > --
> > > > >  Richard Gaskin
> > > > >  Fourth World Media Corporation
> > > > >  Developer of WebMerge 2.2: Publish any database on any site  
> > > > > ___________________________________________________________
> > > > >  Ambassador at FourthWorld.com       http://www.FourthWorld.com
> > > > >  Tel: 323-225-3717                       AIM: FourthWorldInc
> > > > > 
> > > > > _______________________________________________
> > > > > metacard mailing list
> > > > > metacard at lists.runrev.com 
> > > > > http://lists.runrev.com/mailman/listinfo/metac> ard
> > > > > 
> > > > 
> > > > _______________________________________________
> > > > metacard mailing list
> > > > metacard at lists.runrev.com
> > > > http://lists.runrev.com/mailman/listinfo/metacard
> > > > 
> > > _______________________________________________
> > > metacard mailing list
> > > metacard at lists.runrev.com
> > > http://lists.runrev.com/mailman/listinfo/metac> ard
> > > 
> > 
> > _______________________________________________
> > metacard mailing list
> > metacard at lists.runrev.com 
> > http://lists.runrev.com/mailman/listinfo/metacard
> > 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/metac> ard
> 




More information about the metacard mailing list