Differentiating Classic from OS9
    Jim Ault 
    JimAultWins at yahoo.com
       
    Wed May  3 09:58:31 EDT 2006
    
    
  
You could try using the BinaryDecode reading a preferences file or other
part of the System folder.  This may get you a unique string for the test.
open file [pathh/filename]
read from file [pathh/filename] at 0 for 2000
put BinaryDecode(h4h4h4h4h4h4h4,it,p1,p2,p3,p4,p5,p6,p7)
--now test variables p1 to p7 and see if they are the same in both versions
The docs may give you a better decode than h in your case.  Just a guess.
Jim Ault
Las Vegas
On 5/3/06 5:14 AM, "Mark Smith" <mark at maseurope.net> wrote:
> This does not cover the case where you have a dual-boot G4 which has
> booted from system 9, but otherwise might work:
> 
> function system9IsClassic
>    if there is a folder "/System" then
>      return true
>    else
>      return false
>    end if 
> end system9IsClassic
> 
> Best,
> 
> Mark
> 
> 
> On 3 May 2006, at 13:04, <revolution at duncansoftware.com>
> <revolution at duncansoftware.com> wrote:
> 
>> 
>> 
>> The systemversion returns 9.2.2 in both Classic (on OSX) and on a
>> real OS9 box. I
>> need to differentiate between them.
>> 
    
    
More information about the use-livecode
mailing list