Created this for myself and thought I would share. It should match all devices which will be unsupported by macOS Sonoma upon release. The benefit of matching unsupported instead of the other way around is that it should not need updated when new devices come out. If you need a smart group for supported devices instead then simply swap the operator to "does not match regex."
To use, create a smart group named something like "macOS 14 Sonoma Unsupported Devices" with the following criteria:
Model Identifier matches regex ^(iMac[1-9],\d|iMac1[0-8],\d|Macmini[1-7],\d|MacPro[1-6],\d|MacBook([1-9]|10),\d|MacBookAir[1-7],\d|MacBookPro[1-9],\d|MacBookPro1[0-4],\d)$
So in the smart group criteria value it has to include everything starting from the ^ to the $ ????
Yes, you would include the ^ and $. The ^ indicates the beginning and $ indicates the end which ensures that the regex matches against the entire model identifier. Without them something like "iMac[1-9]" would incorrectly match "iMac10" as well.
@TrentO so is your regex mac models for Sonoma the macs not compatible or the same that Apple provides which are compatible? and we just choose 'does not match regex'?
check this one out i'm using for macOS Venture 13. Whats the difference with the regex entries in this compared to how you did it in macOS Sonoma 14?
This regex will match all devices not compatible with Sonoma. So if you implement the criteria using "matches regex" you should get a list of devices which cannot run Sonoma. If you use "not matches regex" you should get a list of devices which can run Sonoma.
I prefer to write my regex this way as it doesn't need to be updated each time Apple releases a new device.
yes, i like the way you wrote yours vs how others create theirs. Yours is way better. No need to worry about new models coming out. Did you create one for Ventura and Monterey?
for now i using Monterey & Ventura from below link information. I get the correct results but then you always worry about new mac models when they get released
Unfortunately, I do not have one for Monterey, but here is what I use for Ventura.