Re: Computer Serial Number
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