Re: Display Model Name
Re: Display Model Name
- Subject: Re: Display Model Name
- From: wayne melrose <email@hidden>
- Date: Wed, 14 Sep 2011 23:02:45 +0200
On Sep 14, 2011, at 10:53 PM, Jeffrey Madson wrote: It doesn't work in Tiger either, that message may just be a red herring. It doesn't matter anyway because I need it to run in Snow Leopard and/or Lion. Is there somewhere else in the OS to pull this information from?
Is it serial number you're looking for?
set strIOPlatformSerialNumber to do shell script "ioreg -l | grep IOPlatformSerialNumber" set AppleScript's text item delimiters to "=" set lstIOPlatformSerialNumber to text items of strIOPlatformSerialNumber set strSerialNumber to item 2 of lstIOPlatformSerialNumber set AppleScript's text item delimiters to "" return strSerialNumber
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden