Re: ASystem Info oddity
Re: ASystem Info oddity
- Subject: Re: ASystem Info oddity
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 09 Jun 2009 14:23:06 -0700
- Thread-topic: ASystem Info oddity
> 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
HTH,
ES
_______________________________________________
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