Intel mac

From Director Online Wiki
Jump to: navigation, search

NOTE: The following fails on 10.5 since the string "CPU Type" has been changed to "Processor Name". A better command is arch which returns "ppc" on Power PC macs and "i386" on a MacBook Pro Intel Core 2 Duo.

DON'T USE: shell_cmd("system_profiler SPHardwareDataType | awk '/CPU Type/{print $3}'", "")


Use arch instead:

put shell_cmd("arch")
-- "ppc"

Since "ppc" will not likely change, I would recommend testing for that.

This can be helpful if your MacOSX projector needs to launch classic applications. If on intel, you can display a more "polite" error message. :^)