Re: One for the experts: Serial Number of computer using Applescript Studio
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