Detect CPU Vendor on OSX
Solution 1:
Try this from the terminal or execute as needed:
system_profiler|grep Processor
Sample:
> dmourati$ system_profiler|grep Processor
> Processor Name: Intel Core 2 Duo
> Processor Speed: 2 GHz
> Number Of Processors: 1
Solution 2:
A faster way then the previous post:
system_profiler SPHardwareDataType | grep Processor\ Name
That limits it to only scanning the hardware, which is faster than scanning the whole system.
You can also change the first command to system_profiler -xml SPHardwareDataType if you want to read it in as XML and parse it that way (which should be more stable if the output changes from version-to-version.