- Question: Q: Finder — Create new files directly from a folder using finder ?
- All replies
- How to Create New File on Mac
- Create Text File on Mac With TextEdit
- Create file
- Save file
- Use Terminal to Create New File on Mac
- Use Automator App to Create a New File on Mac
- Set up a new task in Automator
- Enable Automator task
- Use Automator to Make New File
- File creation task listing
- Create New File In Mac Finder
- Conclusion
- Recent Posts
- About Me
- 4 Ways to Create a New Blank Text File in Any Folder on Your Mac
- 1. Using an Automator App to Create a Blank Text File in Any Folder
- 2. Using Automator’s Quick Actions to Create a New Blank Text File
- 3. Using Terminal to Create a New Blank Text File in Any Folder
- 4. Use a Third-Party File Manager App to Create a New Blank Text File
- Wrapping Up
Question: Q: Finder — Create new files directly from a folder using finder ?
In Finder, is there a way to do a right-click in a folder and create a new file like: New Text File or New Document from that location?
I used to do this oftenly in Windows (right click, New Word document) but I have not found it in Mac OS X, any work around ?
Macbook Pro, Mac OS X (10.6.4)
Posted on Aug 17, 2010 6:35 PM
All replies
Loading page content
Page content loaded
Aug 17, 2010 6:51 PM
Aug 17, 2010 6:54 PM
Aug 17, 2010 7:01 PM
Try the [Apple feedback page|http://www.apple.com/feedback>. However, note that this is unlikely to be added. It would be a very cumbersome feature.
On Windows, you’re almost guaranteed to be tied to a particular set of document creation tools. If you’re using an office suite other than MS Office, you’re so weird you might as well be using a Mac! 🙂 This means that commands like «New Document» make sense there.
On a Mac, a «document» could be created with MS Word, Pages, TextEdit, NeoOffice, OpenOffice, Mellel, Nisus Writer Marinter Write, or any of a host of other programs. (Mac users tend to put less emphasis on the popular tool and prefer to use the tool that «fits the hand» best.) Further complicating things is the fact that «document» is a very generic term, since every spreadsheet is a document, every Photoshop file is a document, etc. The contextual menu would rapidly become unmanageable if it had to fill up with «New Whatever Document» commands for every app on your hard drive!
Источник
How to Create New File on Mac
I absolutely love Macs. They are very easy to use and much more stable than Windows computers. But if there is one thing, I miss a lot, the thing that Windows does better than Mac, is easiness of creating a new file.
To create a new file on a Mac launch TextEdit app from the Launchpad. In the app menu select Format, Make Plain Text (or use Command-Shift-T keys). Next, go to the File option in the menu and click Save. Finally, select the output folder, provide the name of the new file, and click Save.
There are many ways to make creating files easier. Let’s review four possible solutions in detail.
Create Text File on Mac With TextEdit
Creating a file using TextEdit is the simplest way for someone who does not want to do anything too technical.
The disadvantage of this approach is that you cannot create files in the Finder. Instead, you have to browse to the required folder every time when creating a file.
TextEdit is a default application that comes with every Mac and it is free.
Create file
To start TextEdit hold Command key and hit Space bar. In a search windows type TextEdit and hit Enter.
By default, TextEdit creates files in RTF format (look like Word documents).
To switch to plain text either press Shift-Command-T.
Or go to the app menu, select Format, this will display a dropdown where you need to click on Make Plain Text option.
Save file
To save the document either press Command-S or go to the app menu, select File and then Save.
The Save File window will pop up.
First, change the name of the file from Untitled to whatever you need. Now make sure that the file will be saved in the correct folder by checking Where section.
If you click on the dropdown next to Where label it will provide a list of different locations including Favorites and Recent folders.
Save file in Textedit
If the folder you need is not in the list, click on an icon that looks like a down arrow. This will change the folder selection from the list to a Finder window. In this window, you can browse and find the folder for your file. You can even create a new folder if needed.
The last option in the Save File dialog is a Plain Text Encoding. By default, it’s Unicode (UTF-8) and it should be enough in most cases. But if you need you can also change the Encoding.
By default, the extension of the new file will be .txt. You can, however, change the file extension when needed.
For instance, if you are creating a bash file you need to create a file in plain text format and save it with a .sh file extension.
Use Terminal to Create New File on Mac
If you are not afraid to be more technical you can use the Terminal app for creating files.
Since the goal to create files after browsing to the folder in the Finder app we start by enabling the Terminal app for current Finder folder.
Steps to enable Terminal are the following:
- Open System Preferences either from the LaunchPad or from Spotlight Search.
- To run it from the Spotlight Search press Command-Space to bring it up. In the search bar type System Preferences (autocomplete will kick in so you wouldn’t need to type the whole word).
- In the System Preferences click on Keyboard icon.
- Click on Shortcuts tab.
- In the left part of the box click on Services.
- Find New Terminal at Folder option under Files and Folders section.
- Make sure that the checkbox is checked.
- Close the window.
Set up Terminal app in Services
Now browse to the folder you need.
Right click on the folder. The context menu will include Services option at the bottom. This option includes different commands available for the current folder. Click on New Terminal at Folder, the option we just enabled in System Preferences.
A new Terminal window will open with the current folder set to the one you had selected in the Finder app.
In the Terminal type: touch
For instance, if I want to create a file called MyTextFile.txt I should type:
touch MyTextFile.txt
You will see a file appear in Finder. Now you can right click on the file and either click Open which will open the file with TextEdit application or select Open With option.
However, TextEdit is not the only app. There are other apps that can create new file on Mac.
Use Automator App to Create a New File on Mac
Both options we reviewed so far have issues. The first option requires to browse to the folder each time when a new file is created, the second option requires using a Terminal app which most users are not very comfortable with.
Besides, there is always a risk to forget the touch command for someone who creates new files occasionally. Ideally, we prefer a solution which does not require remembering UNIX commands with the flexibility of having creating files from the current Finder folder.
Fortunately, there is such an option – using the Automator app. The Automator app is a very old one and was in mac OS (or OS X) for a long time. People used Automator to automate some routine tasks.
For instance, some people use it to rename files in folders with hundreds of files. Or you can create a new Voice command by using Dictation and Automator. At the same time, the Automator app is very hard to use and very limited in functionality. However, it works fine for our purposes.
The trick is to do everything exactly as provided, misspelling even one character will result in failure of the operation (but don’t even if it something doesn’t work it’s not going to break your Mac).
Set up a new task in Automator
- Start Automator from LaunchPad\Others folder or from Spotlight Search by typing Automator.
- In the starting window click on Quick Action icon.
- Change the dropdown next to Workflow receives current from Automatic (text) to folders and in any application to Finder.app.
- There are various actions on the left, but you need a specific one. In the Search bar type “script”. The search results will display several results, but you need Run AppleScript. Click on it.
- Next drag Run AppleScript to the right under the workflow.
- Select and delete the entire text in the script starting from “on run” and ending with “end run” including.
- Copy and paste text from Listing 1 below to the white box.
- Save all by pressing Command-S.
- The window will pop up asking to provide a name for the quick action. Type New File and hit Save button.
The quick action is created. Now it needs to be enabled just like quick action for the terminal.
Enable Automator task
- Open System Preferences.
- In the System Preferences click on the Keyboard icon.
- Click on Shortcuts tab.
- In the left part of the box click on Services.
- Find New File option under Files and Folders section.
- Make sure that the checkbox is checked.
- Close the window.
Select Run AppleScript action on the left
Use Automator to Make New File
Now use Finder to browse to the folder you need. Right click on the folder. The context menu will include Services option at the bottom. Click on New File option.
The action will bring up a message box with a title Enter file name, folder followed by the current folder path in parentheses. The new file will be created in that folder.
Under the title, there will be a name of the file to be created. By default, the name is filename.txt. You can change it to anything you like. Under the hood, the quick action calls a UNIX touch command just like in the case of Terminal solution.
After typing in a new file name click Ok. If you change your mind and decided not to create a file you can click Cancel and no file will be added.
Congratulations, you have your own automated action created!
File creation task listing
Create New File In Mac Finder
This problem of adding new files seems to be so popular and I don’t understand why Apple is resisting to add an option of creating new files to the right-click menu.
Use a third-party app called “New File Menu” to create a new file in Mac Finder. Once the app is installed, use browse to the folder, and use right-click to bring up context menu with “New File Menu” option. Click on menu option to create file.
To install the app do the following:
- Start App Store
- Type New File Menu Free in the Search bar
- In the search results find the New File Menu app and click on Get
- After installation your Mac will ask to enable the extension
- Click on Open System Preferences button
- In the System Preferences enable a checkbox called Finder Extensions in NewMenuFileFree section
Search New File Menu Free in App Store
Open System Preferences to configure the extension
Enable extension in System Preferences
The disadvantage of the free version of the app is that it only allows one type of files to be created.
If you mostly creating Word files you can choose Word document from the templates, but in this case, you will not be able to create text files from the context menu.
Good news is that if you need more templates than you can install the paid version of the app.
Conclusion
There are many ways to creating new files in Mac. We reviewed just 4 of them, but either solution should be enough and none of them is hard to implement.
Personally, I like New File Menu app. I can always create a new text file in the Finder by using a right click.
Topics:
Hi, I am Al. I’ve been working with computers for more than 20 years and I am passionate about Apple products. You can reach me at [email protected]
Recent Posts
People constantly reach out to me to ask me what kind of computer should they buy for various activities. Usually, your choice is dictated by the software you need to be able to run. Once you know.
It took me a long time to switch from PCs to Macs. After trying to figure out how the Mac operating system works, I finally gave up and installed Windows on my Mac mini (my first Apple.
About Me
Hi, I am Al. I’ve been working with computers for more than 20 years and I am passionate about Apple products. You can reach me at [email protected]
Источник
4 Ways to Create a New Blank Text File in Any Folder on Your Mac
One great feature in Windows is the ability to create a new blank text file from the right-click context menu, but this feature doesn’t exist on Mac natively. However, it is possible, though more complex than a simple right-click.
In this post, we look at how to create a new blank text file in any folder on your Mac. While there are a few ways to do so, we cover the major ones.
Also read: How to Delete Files from Your Mac that Won’t Delete
1. Using an Automator App to Create a Blank Text File in Any Folder
For this first method, we are using the Automator app to create a script, which will help you create a new blank text file in any folder.
1. Launch Automator in your preferred way – either from the Applications folder or Spotlight.
2. Select the “Applications” folder in the panel on the left and click on “New Document” to create a new application.
3. Choose the type of document you’d like to create. In this case, we want an application. Select this, then click the Choose button:
4. From here, you’ll want to drag the action named “Run AppleScript” from the Actions panel on the left and drop it into the workflow panel on the right.
Note that you may need to search for it using the small search bar at the top.
5. You’ll notice an AppleScript editor appear in the workflow panel. Clear out the contents and paste in the following script:
6. Click on the “File” menu on the top and select “Save … “
7. The next screen will ask you for a name for your app, and where the saved file should live. You can enter anything you like here, but make sure you select Applications for both the “Where” and “File Format” fields.
8. Once you click on save, open the Applications folder from the Finder. To use the new app anywhere, hold the Option + Command keys, and drag the app to the Finder toolbar.
9. From here, head to any folder and create a new blank text file with a single-click of the app.
It will create a new text file with the name “untitled” in the folder you are currently in.
2. Using Automator’s Quick Actions to Create a New Blank Text File
You may also want to use Automator’s Quick Actions to create a new blank text file. This is marginally quicker than the previous approach, although it follows almost the same process.
The benefit is that you can add shortcuts to the Services menu and the Actions menu within the Finder’s toolbar. What’s more, it can help you make light work of repetitive tasks.
The only difference in the process is that you would choose Quick Action instead of Application when first creating your Automator script.
While you could create the whole script here, you may also want to assign the app from the last section to a Quick Action.
Still, regardless of your approach, you can navigate to the “Finder -> Services” menu, within the toolbar, and find your new Quick Action.
3. Using Terminal to Create a New Blank Text File in Any Folder
First, select a folder where you’d like to create your file from within the Finder. Next, navigate to the “Finder -> Services” menu within the toolbar. Here, you’ll see a number of different services. Select the option that says “New Terminal at Folder.” This will open a Terminal window in the current working directory.
When the Terminal window is open, type in the following command and press Enter:
You can replace the placeholder text with your chosen filename. Once you confirm, the file will populate the chosen folder.
Also read: How to Hide Files, Folders and Desktop Icons on Mac
4. Use a Third-Party File Manager App to Create a New Blank Text File
Many Mac users see enough flaws in the current Finder system that they supplement the functionality with a third-party app. There are a few on the market, but Path Finder is a great solution.
The good news is that there’s a shortcut to help you create a new blank text file, although it’s hidden within Path Finder’s menus.
To get there, navigate to your desired folder within Path Finder, then open the File menu from the toolbar. You’ll see the option to create a new file.
What’s more, you can use a keyboard shortcut to create the file. Once you press Command + Option + Control + N , this will create the file in the specified folder.
Wrapping Up
There are possibilities to create a new blank text file on your Mac with a single-click. While there isn’t a native way, you can use native apps to create an Automator script. Depending on which type of script you make, you’ll be able to access it from a number of different finder menus. If you use an app such as Path Finder, you get this functionality in the box.
Also read: 5 Ways to Reveal a File Path on Mac
If you want to use Automator to do more with your Mac, we have an article for you. Will this Automator tip help you be more efficient? Share your thoughts in the comments section below!
Tom Rankin is a quality content writer for WordPress, tech, and small businesses. When he’s not putting fingers to keyboard, he can be found taking photographs, writing music, playing computer games, and talking in the third-person.
Источник