Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translate Apple's model identifiers (MacBookPro5,1) to user-friendly names?

Does Mac OS X have API that translates Apple's model identifiers (the kind found in plists and APIs, e.g., "MacBookPro5,1") to user-friendly marketing names of these devices ("Unibody MacBook Pro Late 2008")?

I'm looking for more future-proof solution than simply hardcoding a list.

like image 885
Kornel Avatar asked Aug 06 '10 19:08

Kornel


People also ask

What is Apple model identifier?

Find the serial number printed on the underside of your Mac, near the regulatory markings. It's also on the original packaging, next to a barcode label. You can then enter that serial number on the Check Coverage page to find your model.

What is a model identifier?

model identifier means the code, usually alphanumeric, which distinguishes a specific product model from other models with the same trade mark or the same manufacturer's, importer's or authorised representative's name; Sample 1Sample 2Sample 3.

What is the model number of my Mac?

From the Apple menu  in the corner of your screen, choose About This Mac. You should see an overview of your Mac, including its model name and serial number.

How old is my Apple laptop?

Here's how to check the model and year for your MacBook, iMac, or Mac mini: On your MacBook, iMac, or Mac mini, click on the Apple menu located in the upper-left corner. Then click About This Mac. In the Overview tab, you'll find your Mac's model number and year.


2 Answers

You could access the following property list to get the human friendly name.

/System/Library/PrivateFrameworks/ServerInformation.framework/Versions/A/Resources/English.lproj/SIMachineAttributes.plist

like image 161
Itachi Avatar answered Oct 16 '22 15:10

Itachi


Try scraping this Wikipedia page: http://en.wikipedia.org/wiki/Timeline_of_Apple_Macintosh_models

Of course, this isn't guaranteed to continue to work, but it's a start.

like image 39
Pat McGee Avatar answered Oct 16 '22 13:10

Pat McGee