• 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: Computer Serial Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Computer Serial Number


  • Subject: Re: Computer Serial Number
  • From: Philip Aker <email@hidden>
  • Date: Sun, 27 Jul 2008 00:35:57 -0700

On 08-07-26, at 16:35, John Baltutis wrote:

On my machine, 24" iMac 2.8 GHz w/10.5.4:

do shell script "system_profiler | awk '/Serial Number:/ {print $NF; exit}'"

do shell script "system_profiler SPHardwareDataType | sed -n 's/ Serial
Number://p'" and


do shell script "ioreg -c 'IOPlatformExpertDevice' | awk
'/IOPlatformSerialNumber/ {print $4}' | cut -b 2-12"

return the computer's serial number.

Unlike the other two:

do shell script "system_profiler SPHardwareDataType | sed -n 's/.*Serial Number://p'"

reports with a space in the result.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
  • Follow-Ups:
    • Re: Computer Serial Number
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Computer Serial Number (From: John Baltutis <email@hidden>)

  • Prev by Date: Re: Computer Serial Number
  • Next by Date: Re: Computer Serial Number
  • Previous by thread: Re: Computer Serial Number
  • Next by thread: Re: Computer Serial Number
  • Index(es):
    • Date
    • Thread