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

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


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

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

Ken Ray
Sons of Thunder Software
Email: kray at
Web Site:

----- Original Message ----- 
From: "Kee Nethery" <kee at>
To: <use-revolution at>
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

More information about the Use-livecode mailing list