Jump to content

Copy txt to clipboard


Recommended Posts

Hello guys,

 

my question is really simple: I have a folder containing 5 .txt files named 1,2,3,4,5. I need to create a workflow that gets the content of the file specified in the input and copy it to my clipboard (and possibly paste it to the front app).

 

ex: "copy 1" and it copies the content of 1.txt to my clipboard

 

I've been trying for hours but I didnt manage to make anything work. I can do that from the terminal but if I use the same code in alfred it doesn't work. I don't get what I am doing wrong.

 

Thanks in advance!

Link to comment

Just made a workflow that is doing exactly what you want.

Here it is: https://www.dropbox.com/s/hzxpynhuubhi28b/Copy%20Textfile%20content%20to%20clipboard.alfredworkflow?dl=0

 

I set the search scope to find the files to the desktop atm. To change that doubleclick the Filefilter->Search Scope-> and there you can change 

the folder or add others :)

 

Hope that helps :)

Edited by FroZen_X
Link to comment

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