Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikerr

macrumors regular
Original poster
May 5, 2007
105
2
Is there really no way to create a new file in finder?

Windows has the simple right click->new menu....
 
I'm really after creating a text file in the current folder.
 
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...
 
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.
 

Attachments

  • Screen shot 2009-11-07 at 2.42.12 AM.png
    Screen shot 2009-11-07 at 2.42.12 AM.png
    49.7 KB · Views: 449
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.