• 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: X, Classic, or 9?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X, Classic, or 9?


  • Subject: Re: X, Classic, or 9?
  • From: yvan-koenig <email@hidden>
  • Date: Mon, 17 Jan 2005 10:14:15 +0100


Le 17 janv. 2005 , à 10:10, yvan-koenig a écrit : …
Maybe this code will fill the gap:

set aa to my quelOS()
display dialog "" & aa

on quelOS()

	try
		set hexData to system attribute "sysv"
		set hexString to {}
		repeat 4 times
			set hexString to ((hexData mod 16) as string) & hexString
			set hexData to hexData div 16
		end repeat
		set OS_version to hexString as string
	on error
		set OS_version to "0000"
		(* retournera "0000" si "system attribute" n'est pas reconnu *)
	end try
	if OS_version is "0922" then
		try
			tell application "System Events"
				set lesprocess to name of every process
			end tell
			set OS_version to OS_version & " Classic"
		end try

	end if
	return OS_version
end quelOS

Yvan KOENIG

You may prefer:
try
			tell application "System Events"
				set lesprocess to name of every process
			end tell
set OS_version to "09Cl"
end try

Yvan KOENIG


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: what does this errror mean? How can I fix it? (From: doug rogers <email@hidden>)
 >Re: what does this errror mean? How can I fix it? (From: Emmanuel <email@hidden>)
 >X, Classic, or 9? (From: Gil Dawson <email@hidden>)
 >Re: X, Classic, or 9? (From: yvan-koenig <email@hidden>)
 >Re: X, Classic, or 9? (From: Gil Dawson <email@hidden>)
 >Re: X, Classic, or 9? (From: Gil Dawson <email@hidden>)
 >Re: X, Classic, or 9? (From: yvan-koenig <email@hidden>)

  • Prev by Date: Re: X, Classic, or 9?
  • Next by Date: mental bloke...
  • Previous by thread: Re: X, Classic, or 9?
  • Next by thread: Getting the length of a file
  • Index(es):
    • Date
    • Thread