Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to determine if an application is snow leopard only, before trying to run the app on an earlier version of OSX?

share|improve this question
    
Not sure if this would be good as an answer, but it'll usually say so on the application's website, if it doesn't say anything about it, odds are it won't work. –  Wuffers May 4 '11 at 22:30
add comment

1 Answer

up vote 1 down vote accepted

If the application authors use the standard way to define minimum system versions for their applications, there are entries in the application bundle's Info.plist file that tell Launch Services what OS version is required: LSMinimumSystemVersion and LSMinimumSystemVersionByArchitecture.

For example, in Daisy Disk's DaisyDisk.app/Contents/Info.plist, the following minimum versions are specified:

<key>LSMinimumSystemVersion</key>
<string>10.5.0</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
    <key>x86_64</key>
    <string>10.6.0</string>
</dict>

These mean that DaisyDisk always requires 10.5, and 10.6 if you're on a 64 bit Intel Mac (or running the 64 bit version of the app on a 64 bit Intel Mac, since it's configurable).


Open these .plist files using Property List Editor or Xcode 4, depending on the version of the developer tools you have installed. For most programs, these can also be viewed in a text editor.

To easily read these values on the command line, enter something like the following:

$ /usr/libexec/PlistBuddy -c "Print LSMinimumSystemVersion" /Applications/ApplicationName.app/Contents/Info.plist
10.5.0
$ /usr/libexec/PlistBuddy -c "Print LSMinimumSystemVersionByArchitecture" /Applications/ApplicationName.app/Contents/Info.plist
Dict {
    x86_64 = 10.6.0
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.