6 ms·
Does anyone interested in this editor know how to associate file types with this app in bulk, rather than one by one in the "Open With ..." dialog? Any other e
by Terretta 15y ago
Does anyone interested in this editor know how to associate file types with this app in bulk, rather than one by one in the "Open With ..." dialog?
Any other editor I have, informs the OS, and a:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
(or the equivalent for your particular version of OS X) will rebuild all those correctly. Sublime Text never appears in the file associations after a rebuild.
Background:
- http://macs.about.com/od/usingyourmac/qt/remove-duplicate-applications-from-open-with.htm http://macs.about.com/od/usingyourmac/qt/remove-duplicate-ap...
// Note: In Safari on Lion, that code line above is long and scrolls, invisibly here on HN.
- skithund 15y agoTry RCDefaultApp, which lets you choose default applications per file extension (amongst other means). http://www.rubicode.com/Software/RCDefaultApp/ http://www.rubicode.com/Software/RCDefaultApp/
- Terretta 15y agoI'd completely forgotten this, though I have it as a preference pane. Thank you for reminding me. SublimeText 2 is recognized in the app list, with a long list of extensions supported, with a single checkmark to add it as an "Open With" option to all of them and a button to allow making it the default. (Note, it's not always what one wants as the default, consider .html for example, so more granular settings may be in order.)
- speg 15y agoIsn't there an option to "Open all files like this" in the 'Open With' dialog?
- Terretta 15y ago> rather than one by one in the "Open With ..." dialog That option means don't just open this .txt file, but all .txt files. That is the option that associates .txt with this editor, yes. But then you have to do it for .php files. And .rb files. And .py files. Etc., one by one.
- losvedir 15y agoHm, the best I can think of is slightly better than one by one: In the finder, command click to select as many different file types as you can, right click, hold down option and "Get Info" turns into "Show Inspector" which pops up a dialog for the aggregate of all the files. In that dialog, I think you can assign Sublime Text to be the default program for all instances of each of those file types.