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'm using mac osx 10.7.5 and I want to be able to right click a file and chose open with... and have the icon appear in that menu, without having to select "other" and go to my application folder to chose the program. I do not want this program to be the default though (the default should stay as it is). How do I add the program to this context menu?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You could add entries to the CFBundleDocumentTypes array in the Info.plist, but it would get overridden by updates. If the application is signed, it also breaks the code signature, and some applications like TextEdit and Chess will crash on launch.

<dict>
    <key>CFBundleTypeExtensions</key>
    <array>
        <string>txt</string>
    </array>
</dict>

To register the changes, run /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /Applications/SomeApp.app/ and killall Finder.

share|improve this answer
2  
No need to run lsregister manually, just touch the application bundle (touch /Applications/SomeApp.app), then deselect and reselect the application in the Finder. The updated mod date will force the Finder to re-examine the Info.plist and re-register the app automatically. –  NSGod Feb 20 '13 at 23:28
    
I ended up solving it with your method, NSGod –  mheavers Feb 21 '13 at 21:32
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.