Re: OS version?
Re: OS version?
- Subject: Re: OS version?
- From: Andrew Oliver <email@hidden>
- Date: Wed, 14 May 2003 23:20:16 -0700
That's partly because
do shell script "defaults read | grep SystemVersionStampAsString"
dumps the *entire* preferences table and greps out the
SystemVersionStampAsString value.
It's much faster to just request the specific preference setting you're
after:
do shell script "defaults read loginwindow SystemVersionStampAsString
This is an order of magnitude faster than dumping the entire defaults table.
Of course, that only makes it 300 times slower than 'system attribute
"sysv"', but the point is still valid :)
Andrew
:)
On 5/14/03 10:39 PM, "Emmanuel" <email@hidden> wrote:
>
OMM,
>
>
--------------------------
>
do shell script "defaults read | grep SystemVersionStampAsString"
>
--------------------------
>
>
is approximately 3000 times slower than:
>
>
--------------------------
>
system attribute "sysv"
>
--------------------------
>
>
Emmanuel
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.