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

Re: ASystem Info oddity


  • Subject: Re: ASystem Info oddity
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 10 Jun 2009 10:28:56 +0200


Le 9 juin 2009 à 23:23, Stockly, Ed a écrit :

set intelInside to CPU type of (system info) contains "Intel"

On my G5 (PowerPC 970) it behaves well.
On my Imac (Intel 80486) it behaves well.

I ran the same script and got the same error. tell application "System Events" set intelInside to CPU type of (system info) contains "Intel" end tell

So, I broke the command into its component parts:

tell application "System Events"
   set sysinfo to system info
   set typeOfCPU to CPU type of (system info)
Generated error here. From the log....
Can't get CPU type of {AppleScript version:\"1.10.7\", AppleScript
Studio version:\"1.4.1\", system version:\"10.4.11\",  <SNIP> CPU
type:\"PowerPC 7450\", CPU speed:866, physical memory:1024}.

this line never executed
    set intelInside to typeOfCPU contains "Intel"
end tell


Yesterdays I asked my correspondant to run:

set sysinfo to (system info)
set CPUtype to CPU type of sysinfo
set intelInside to CPUtype contains "Intel"

I didn't embedded it in a tell System Events as it's a Standard Addition instruction.

It failed on the second instruction.

Yvan KOENIG (from FRANCE mercredi 10 juin 2009 10:28:51)



_______________________________________________
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
References: 
 >Re: ASystem Info oddity (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: ASystem Info oddity
  • Next by Date: How to manage image-list
  • Previous by thread: Re: ASystem Info oddity
  • Next by thread: Re: ASystem Info oddity
  • Index(es):
    • Date
    • Thread