10 Replies Latest reply: Jun 29, 2013 9:37 PM by Tim St.Clair
Tim St.Clair Level 1 (10 points)

I have an app called "Notepad". I want to add this to the list that I get when I right click a file and say "Open with".


If I choose it once for a file, that's ok (I have to unselect "reccomended applications"). Next time I right-click, I have to choose it again. It does not appear on the list.


I want to register Notepad as a possible file to open any thing I right click. E.g. files that do not have an associated application. Notepad will show me the raw file where TextEdit won't.

MacBook Air, OS X Mountain Lion (10.8.1)
  • jayv. Level 4 (1,285 points)

    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.

  • Tim St.Clair Level 1 (10 points)

    Yeah, except that:

    Screen Shot 2013-06-27 at 3.50.09 PM.png

  • jayv. Level 4 (1,285 points)

    What is the file extension (if any)? If these are malware samples of any kind (looks very similar) then try adding .zip to it. If it's a MACH-O file then i don't know of an extension.

  • jayv. Level 4 (1,285 points)

    I think the 'service' plugin is installed by the application itself. Dont know how to create one. If notepad is not a must, try TextWrangler.

  • Tim St.Clair Level 1 (10 points)

    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.

  • jayv. Level 4 (1,285 points)

    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.

  • Dr.Mac. Level 3 (580 points)

    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 argumentsand 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.



  • Dr.Mac. Level 3 (580 points)

    Hello, I am just checking up on your post status and it says unsolved.


    <Edited By Host>

  • Old Toad Level 10 (135,413 points)

    We don't beg for points here. 

  • Tim St.Clair Level 1 (10 points)

    it's not like i'm sitting at my computer clicking refresh every 20 seconds.