Create a new file in finder...

Discussion in 'macOS' started by mikerr, Oct 26, 2009.

  1. mikerr macrumors regular

    Joined:
    May 5, 2007
    #1
    Is there really no way to create a new file in finder?

    Windows has the simple right click->new menu....
     
  2. Angelo95210 macrumors 6502a

    Angelo95210

    Joined:
    Jan 7, 2009
    Location:
    Paris, France
    #2
    What kind of file ?
    Just open Terminal and type :
    Code:
    touch yourfile
    And you will get a new file...
     
  3. mikerr thread starter macrumors regular

    Joined:
    May 5, 2007
    #3
    I'm really after creating a text file in the current folder.
     
  4. Angelo95210 macrumors 6502a

    Angelo95210

    Joined:
    Jan 7, 2009
    Location:
    Paris, France
    #4
    OK. The command I gave you create an empty file, maybe you can embed it in an Automator action. This one would be available with the right click. It's easily doable methink. But sorry I am not into Automator...
     
  5. mikerr thread starter macrumors regular

    Joined:
    May 5, 2007
  6. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #7
    is it supposed to work in Snow Leopard ? It's not working for me :(
     
  7. gr8tfly macrumors 603

    gr8tfly

    Joined:
    Oct 29, 2006
    Location:
    ~119W 34N
    #8
    You can create a service using Automator, which will create a new, empty text file of whatever file name you like.

    The simplest form is :

    1. Open Automator and specify "Service" as the project type.
    2. Then set the following options [at the top] "Service receives: no input" in "any application" (or, specific if you want it to be a service only for certain applications.
    3. Now add the "New Text File" Action. You can specify the file name, where it lives, and whether to replace existing files.
    Once saved, the Service should appear in any (or all) applications you specify. When you run it, a new, blank, text file will be saved in the Finder. If you want it to open automatically in TextEdit or whatever by adding the Open Finder Items action right after the previous one. Save again.

    You could make it an application, also, if you like - it just depends on how you want it to be implemented. But, you mentioned "Finder" accessible.

    To remove a saved service you can navigate to your ~/Library/Services folder and delete it. Attached is the Automator Service described above.

    Hope it helps out. It's also a small intro to Automator - the OP might find other uses for their idea, maybe at some fancy thinks like asking user input for file name and the like; or sequential file names. Just a thought.
     

    Attached Files:

  8. mawebi macrumors newbie

    Joined:
    Jun 17, 2011
    #9
    NewDoc for Mac

    There is a little tool which does this, you can also use your own templates with it. Search for NewDoc in Apples app store. You just have to go to the directory where you want to have your new file or new document, klick on a menulet and select the file you want from your template list.
     
  9. arkmannj macrumors 65816

    arkmannj

    Joined:
    Oct 1, 2003
    Location:
    UT
    #10

Share This Page