3 Replies Latest reply on Sep 16, 2008 1:39 PM by twurdock

    Detect PPC vs Intel processor?

    twurdock
      I am using Director 8.5 and I need to determine which processor for the preloading of certain files...
        • 1. Re: Detect PPC vs Intel processor?
          twurdock Level 1
          Any one know of a way to do this. I did see that the value for the Environment[ #Platform ] was reported differently on the different platforms:


          win reported info (xp w ie7)
          platform reported:
          Windows,32

          ===================================

          ppc osx reported info
          platform reported:
          Macintosh,PowerPC

          ===================================

          intel osx reported info
          platform reported:
          Macintosh,PPC

          But I only ran this test on three machines. Will the new intel mac always report "Macintosh,PPC" while the older architecture reports "Macintosh,PowerPC"

          I imagine this may be rarely-chartered territory....
          • 2. Re: Detect PPC vs Intel processor?
            fazstp Level 2
            One thing you can try is Valentin's Shell xtra with the system_profiler command;

            profile = shell_cmd( "system_profiler SPHardwareDataType" )

            I get differently formatted results on my Intel iMac and my PPC iBook so I'm not sure about parsing the result but it does identify the processor in either case.

            iMac;
            Hardware Overview:

            Model Name: iMac
            Model Identifier: iMac5,1
            Processor Name: Intel Core 2 Duo...


            iBook;
            Hardware Overview:

            Machine Name: iBook
            Machine Model: PowerBook4,3
            CPU Type: PowerPC 750 (2.3)...

            • 3. Re: Detect PPC vs Intel processor?
              twurdock Level 1
              As it turns out I can handle the different processors by some crafty code. I don't need to know the processor.

              Thanks for the link though, I will need it someday I am sure.