Re: Computer Serial Number
Re: Computer Serial Number
- Subject: Re: Computer Serial Number
- From: Philip Aker <email@hidden>
- Date: Fri, 25 Jul 2008 18:43:14 -0700
On 08-07-25, at 18:02, Randal L. Schwartz wrote:
Mark> do shell script "system_profiler | awk '/Serial Number:/
{print $NF; exit}' "
do shell script "system_profiler | sed -n 's/.*Serial Number://p'
This is the first part of the call:
/usr/sbin/system_profiler SPHardwareDataType
because as J. Welch implied, the full path saves a lookup.
Even still, if I amend your script to:
do shell script "/usr/sbin/system_profiler SPHardwareDataType | sed -
n 's/.*Serial Number://p'"
it doesn't return the correct 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