huskyhusky Posted August 25, 2021 Share Posted August 25, 2021 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
vitor Posted August 25, 2021 Share Posted August 25, 2021 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
huskyhusky Posted August 25, 2021 Author Share Posted August 25, 2021 5 hours ago, vitor said: Welcome @huskyhusky, 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. Thank you very much! This works perfectly! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now