• 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: One for the experts: Serial Number of computer using Applescript Studio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One for the experts: Serial Number of computer using Applescript Studio


  • Subject: Re: One for the experts: Serial Number of computer using Applescript Studio
  • From: yvan-koenig <email@hidden>
  • Date: Fri, 18 Mar 2005 13:27:45 +0100


Le 18 mars 2005 , à 13:12, Neil Faiman a écrit :
But this will work, as long as the profile contains a line with phrase "Serial Number:"


tell application "System Profiler"
	set sn to ""
	set sp to system profile
	repeat with p in paragraphs of sp
		if p contains "Serial Number:" then
			set sn to contents of p
			exit repeat
		end if
	end repeat
	sn
end tell

Fine script … which will break if the running system is not an english one.


A french system returns:
"      Numéro de série: CK34900BNVB"

Yvan KOENIG (from FRANCE)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: One for the experts: Serial Number of computer using Applescript Studio
      • From: Martin Orpen <email@hidden>
References: 
 >Re: One for the experts: Serial Number of computer using Applescript Studio (From: Andrew Oliver <email@hidden>)
 >Re: One for the experts: Serial Number of computer using Applescript Studio (From: Neil Faiman <email@hidden>)

  • Prev by Date: Re: .acgi & form to send vars to an APP
  • Next by Date: Re: One for the experts: Serial Number of computer using Applescript Studio
  • Previous by thread: Re: One for the experts: Serial Number of computer using Applescript Studio
  • Next by thread: Re: One for the experts: Serial Number of computer using Applescript Studio
  • Index(es):
    • Date
    • Thread