• 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: Thu, 24 Jul 2008 16:35:24 -0700

On 08-07-24, at 15:54, Ed Rush wrote:


On 24 Jul 2008, at 3:21 PM, Michael J. Vinca wrote:

Have you tried the command line system profiler?

    do shell script "system_profiler | grep 'Serial Number:'"

The first one is the computer. You'll still need to parse it a little.


Um, yes. Just for jollies, I tried it and got nine serial numbers. Still, the basic idea is a good one.

do shell script "system_profiler SPHardwareDataType | grep 'Serial Number' | tr -d ' ' | cut -d : -f 2"


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: "Michael J. Vinca" <email@hidden>
    • Re: Computer Serial Number
      • From: "Michael J. Vinca" <email@hidden>
    • Re: Computer Serial Number
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Computer Serial Number (From: Oakley Masten <email@hidden>)
 >Re: Computer Serial Number (From: "Michael J. Vinca" <email@hidden>)
 >Re: Computer Serial Number (From: Ed Rush <email@hidden>)

  • Prev by Date: Re: Computer Serial Number
  • Next by Date: iCal moving events to calendar not working
  • Previous by thread: Re: Computer Serial Number
  • Next by thread: Re: Computer Serial Number
  • Index(es):
    • Date
    • Thread