Currently Being ModeratedJun 26, 2013 10:47 PM (in response to Tim St.Clair)
I don't have an answer to your specific question but another way of doing this is to select one of the files you want to open in notepad. Then right-click on it and select 'Get Info'. In the get info window look for 'open with'. Select your notepad application.
If you want all those file types to be opened with notepad from now on then click the 'Change all" button. Now all those files will open in notepad by default and you would have to right-click it to open it in textEdit or any other app.
Hope that helps.
TextWranger seems to process the file, like textedit does, and it doesn't show the file properly. Notepad doesn't do anything to it, so you get to see the raw file, which is the point to what I'm trying to do. If I can get notepad to open it, then I can also get a hexeditor to open it the same way (once I find one to my liking). But I can't get notepad into the list.
File extension: No, what you are seeing in the screenshot is the filename. It's a guid, and it's a disk cache file for a database-based file system. I need to poke around in them by hand in order to debug some problems, and I can narrow down the files with content searching, but opening them for tweaking/editing is a pain with the steps I have to jump through.
Currently Being ModeratedJun 26, 2013 11:10 PM (in response to Tim St.Clair)
I see. I am out of ideas then, someone else will come along that might give you an actual solution. Without an extension OS X can not tie an app to a filetype as without an extension it doesn't know what the filetype is. Your original question would be the best solution indeed. For files like that i keep my preferred application in the dock and i just drop the file(s) on the icon to open it, may be a bit faster than right clicking.
Currently Being ModeratedJun 27, 2013 7:57 AM (in response to Tim St.Clair)
In order to add "Open with Notepad" to your list I would recommend to use the Automator Service.
Open /Applications/Automator.app and select create a new Service:
Set "Service receives selected files or folders in any application":
Then from the Library, select Utilities and double-click Run Shell Script.
Set "Pass input as arguments" and write the following text :
if [ -f "$1" ] ; then
open -a "Notepad" "$1"
Finally Save service as "Open with Notepad"
Now you can right-click and "Open with Notepad" will appear on your list.
MacBook Pro, OS X Mountain Lion (10.8.4)