Jump to content

New Text File in front folder


Recommended Posts

Hello there! With this workflow you could either use cmd+alt+n or the keyword txt to create a new txt file in the front window of the Finder. If no window is open, the file will be created on the Desktop.

Comment out the line (delete the --)

 

-- tell application "Finder" to open theFile 

 

to open the file after it has been created.

 

textfile_alfred.png

 

Download

Edited by qohelet
Link to comment
  • 2 weeks later...

Is it possible to specify the name of the file?

 

like:

 

txt notes.txt

 

I ported a useful v1 workflow over to v2 and it works perfectly for my needs and does allow specifying filename along with extension, accepts any extension too. For instance, 'nfh blue.md' would create a file named blue.md in the finder folder and open it with whatever app you have set as your default app to open .md or .txt or .sh or whatever file you want to create and open. All thanks to original developer who is credited John Franey.

 

http://d.pr/f/lae2

Link to comment
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...