Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
 Director Online WikiMain Page | About | Help | FAQ | Special pages | Log in | Printable version | Disclaimers

Intel mac

From Director Online Wiki

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. :^)

Retrieved from "http://www.director-online.com/dougwiki/index.php/Intel_mac"

This page has been accessed 1988 times. This page was last modified 20:24, 10 Apr 2008.