• 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
Rép: ASystem Info oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép: ASystem Info oddity


  • Subject: Rép: ASystem Info oddity
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 10 Jun 2009 23:24:51 +0200


Le 10 juin 2009 à 21:19, Stockly, Ed a écrit :

OK, yes, this is odd.

On my mac, if I type this into the script editor I get the error.

-----------
set myInfo to system info
return CPU type of myInfo
-----------

But, if I type this into script editor...

-----------
set myInfo to system info
return «property sict» of myInfo --chevrons
-----------

It compiles as:

-----------
set myInfo to system info
return CPU type of myInfo
-----------

And when I run it, it works.

If I edit or recompile, it fails.

Hmmm. So that's a workaround and should probably be reported as a bug.


It appears that the problem strikes on some machines, not on others.

I was able to test on my daughter's ibook and the original script behaved flawlessly: POWERPC 7450

I'm a bit reluctant to file a but when it's not striking on machines which I may have access.


Philip Aker was fair enough to send me three alternate scripts:


do shell script "sysctl -n hw.byteorder" do shell script "sysctl -n machdep.cpu.brand_string" do shell script "sysctl -n machdep.cpu.vendor"

Only the first one is usable under 10.4.11

Now I use:

set intelInside to (do shell script "sysctl -n hw.byteorder") = "1234"
because, on powerPC machines the returned value is "4321".

Thanks to all of you.

Yvan KOENIG (from FRANCE mercredi 10 juin 2009 21:47:03)


_______________________________________________ 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
  • Prev by Date: Re: How to manage image-list
  • Next by Date: Re: How to manage image-list
  • Previous by thread: Re: Getting Class of a Page Item in Illustrator CS 3
  • Next by thread: Rép: ASystem Info oddity
  • Index(es):
    • Date
    • Thread