• 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: 10.4.9 versus 10.4.10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.4.9 versus 10.4.10


  • Subject: Re: 10.4.9 versus 10.4.10
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 16 Mar 2008 11:50:39 +0100


Le 15 mars 2008 à 23:49, Luther Fuller a écrit :

Avoid 'sysv', BCD or HEX completely and use this ...

set dotV to (system version of (system info)) & ".0.0"
set AppleScript's text item delimiters to "."
set numV to (text item 1 of dotV) * 1000000 + (text item 2 of dotV) * 1000 + (text item 3 of dotV)


Since numV is a (decimal) integer, you can compare versions easily.
And everyone understands decimal.


As I am curious, I tried to grab the other properties of system info.


set systemInfos to system info

set sysVersion to system version of systemInfos
set shortUserName to short user name of systemInfos
set longUserName to long user name of systemInfos
set userLocale to user locale of systemInfos
set homeDirectory to home directory of systemInfos
set bootVolume to boot volume of systemInfos
set computerName to computer name of systemInfos
set hostName to host name of systemInfos
set IPv4Address to IPv4 address of systemInfos
set primaryEthernetAddress to primary Ethernet address of systemInfos
try
	set CPUtype to CPU type of systemInfos
on error
	set CPUtype to "bug or not bug"
end try
set CPUspeed to CPU speed of systemInfos
set physicalMemory to physical memory of systemInfos
log CPUtype

Under 10.4.11, I can't grab CPU type.
Is it a normal behaviour ?

UK

_______________________________________________
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
  • Follow-Ups:
    • Re: 10.4.9 versus 10.4.10
      • From: Philip Aker <email@hidden>
References: 
 >10.4.9 versus 10.4.10 (From: KOENIG Yvan <email@hidden>)
 >Re: 10.4.9 versus 10.4.10 (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: 10.4.9 versus 10.4.10
  • Next by Date: Re: 10.4.9 versus 10.4.10
  • Previous by thread: Re: 10.4.9 versus 10.4.10
  • Next by thread: Re: 10.4.9 versus 10.4.10
  • Index(es):
    • Date
    • Thread