platform() = MacOS (9 with ascii(13) or X with ascii(10))?

Ken Ray kray at sonsothunder.com
Fri Aug 30 12:34:00 EDT 2002


Kee,

Check the systemVersion() function. So you can say:

if the platform is "MacOS" then
  if the systemVersion < 10 then
    -- OS 9 stuff
  else
    -- OS 10 stuff
  end if
end if

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message ----- 
From: "Kee Nethery" <kee at kagi.com>
To: <use-revolution at lists.runrev.com>
Sent: Friday, August 30, 2002 11:44 AM
Subject: platform() = MacOS (9 with ascii(13) or X with ascii(10))?


> Regardless whether CR is platform specific, I know that Mac OS 9 uses 
> a ascii(13) to delimit lines and I assume revolution honors that on 
> Mac OS 9. It appears that revolution in Mac OS X uses ascii(10) to 
> delimit lines.
> 
> Since platform() is supposed to return "MacOS" for both versions of 
> the MacOS and because the two platforms appear to use different line 
> endings in Revolution ... how do I tell whether I need to convert 
> line endings from ascii(13) to ascii(10) or leave them as ascii(13)?
> 
> How do I know which MacOS I am on given that Revolution appears to 
> treat them differently?
> 
> Kee Nethery
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 




More information about the Use-livecode mailing list