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.
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.
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With