• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Model Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Display Model Name (From: Jeffrey Madson <email@hidden>)
 >Re: Display Model Name (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: Display Model Name
  • Next by Date: Re: Display Model Name
  • Previous by thread: Re: Display Model Name
  • Next by thread: Re: Display Model Name
  • Index(es):
    • Date
    • Thread