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: Martin Orpen <email@hidden>
- Date: Fri, 17 Jun 2005 23:40:49 +0100
on 17/6/05 20:03, Gabe Lucero at email@hidden wrote:
> These are the two scripts I¹ve found will work in 10.4 but gives me the whole
> sn line:
>
> do shell script "system_profiler SPHardwareDataType | grep Serial"
You can use awk to do this as a one-liner:
do shell script "system_profiler SPHardwareDataType | awk '/ Serial/ {
print $NF }'"
-->"V74014EANRZ"
Regards
--
Martin Orpen
_______________________________________________
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