• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OS version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OS version?
      • From: Emmanuel <email@hidden>
References: 
 >Re: OS version? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: OS version?
  • Next by Date: Trying to export memos in Palm Desktop 4.0
  • Previous by thread: Re: OS version?
  • Next by thread: Re: OS version?
  • Index(es):
    • Date
    • Thread