Change "char 1 of the version" to "char 1 of the systemversion" and it works fine.

Ian

On 2 May 2007, at 12:26, Mark Schonewille wrote:

on foo
  if the platform is "MacOS" then -- osx or os9
    if char 1 of the version is 1 then -- osx
      if the processor is "x86" then -- intel
        return "You are on an intel Mac"
      else
        return "You are in a PPC Mac"
      end if
    else
       return "This machine doesn't run OSX"
    end if
  else
    return "This is no Mac"
  end if
end foo

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to