Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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,


share|improve this question

migrated from Dec 28 '12 at 9:11

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

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

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

Replace "" 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

The file is located here: ~/Library//Preferences/

share|improve this answer
It may be necessary to rebuild the launch services domain for the local user after changing this setting (to get it to take effect immediately): /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS‌​ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user – Eddie Aug 4 '14 at 19:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .