Jump to content

Save filepath for later use


Recommended Posts

Hi Alfred community. Is there a way to save a text separately instead of putting it in the clipboard history?

Reason: I want to create a workflow so that I can cache a certain text at the push of a button so that I can use it in a workflow at a later time.

 

I want to save the file path of a file at the push of a button to be able to retrieve the path again and again during the day.

Since I want this path to change every time I press a button, I can't pre-program a snippet or create the workflow like this. Would anyone have an idea? I hope I could express myself understandably. Thanks!

Link to comment

Welcome @huskyhusky,

 

36 minutes ago, huskyhusky said:

Is there a way to save a text separately instead of putting it in the clipboard history?

 

Save a text file to a predictable location (/tmp, or alfred_workflow_cache) and read it back when you need it.

 

You’ll need a minimal amount of coding to read the file back: cat FILE_PATH_HERE in a Run Script Action with /bin/bash as the Language, for example.

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