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.

I would like to know how to set the .PDF file extension to be associated with Adobe Reader as the default program by setting this via the terminal in Mac OSX 10.8. My reasons for needing to this this via the terminal is due to the fact that i am applying this change on over thirty Macs. Any help is appreciated.

Thank you,

Devon

share|improve this question
add comment

migrated from stackoverflow.com Dec 28 '12 at 9:11

This question came from our site for professional and enthusiast programmers.

1 Answer

I think this is a user setting, you might need to do this for each user...

$ defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType = "com.adobe.pdf"; LSHandlerRoleAll = "com.apple.preview";}'

Replace "com.apple.preview" by the CFBundleIdentifier of Adobe Reader (you will find it in the Info.plist of the application).

Be careful, if you run twice the command it might add several to the plist of com.apple.LaunchServices

The file is located here: ~/Library//Preferences/com.apple.LaunchServices.plist

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.