Differentiating Classic from OS9
Jim Ault
JimAultWins at yahoo.com
Wed May 3 10:32:48 EDT 2006
The exact syntax for the decode is
put BinaryDecode("h4h4h4h4h4h4h4",it,p1,p2,p3,p4,p5,p6,p7)
Jim Ault
Las Vegas
On 5/3/06 6:58 AM, "Jim Ault" <JimAultWins at yahoo.com> wrote:
> 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.
>>>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list