vlar Posted December 21, 2021 Share Posted December 21, 2021 Hello, I have designed a simple workflow which takes my clipboard and pass it into a small bash script and then there is a notification. I would like the notification to include my clipboard value so 'I'm sure the content of my clipboard is the one I needed to be processed. I did try through all the way possible : {clipboard} {var:clipboard} When I use {query}, it does indeed return a part of my script but not the clipboard. I have searched (surely wrongly) for hours without a solution. Cheers to you all fellow productivists Link to comment
Vero Posted December 21, 2021 Share Posted December 21, 2021 @vlar Could you please share your workflow so that we can see what you've got so far? You may just need to add an Arg/Var utility before your Post Notification to add the Clipboard to the output from your script. Cheers, Vero Link to comment
vlar Posted December 21, 2021 Author Share Posted December 21, 2021 Hello, Since, I'm using a master workflow for hundreds of small custom actions it would be convenient but here is a most exhaustive description for this simple workflow: Prompt keyword: csfip Title & No Subtext Action Append to file with only {clipboard} Post Notification with a title {clipboard} or with a text {clipboard} The bash script isn't actually triggered by Alfred itself but from a cronjob. - Link to comment
deanishe Posted December 21, 2021 Share Posted December 21, 2021 56 minutes ago, vlar said: but here is a most exhaustive description for this simple workflow We can't debug a workflow based on a vague text description. If you won't upload the entire workflow, copy the part that isn't working into a new one and upload that somewhere, then post a link to it. Link to comment
vlar Posted December 22, 2021 Author Share Posted December 22, 2021 Understood. Thank you for taking the time to letting me know. Here is the workflow: https://www.dropbox.com/s/224kkyc6k8cubp2/csfip10.alfredworkflow?dl=0 Link to comment
Vero Posted December 22, 2021 Share Posted December 22, 2021 @vlar Here's your workflow, updated to add an Arg/Var object which takes the clipboard and turns it into the argument that is then passed on to your Notification https://www.dropbox.com/s/qmk7bwknyzl9e4h/CSFIP for vlar.alfredworkflow?dl=0 Hope this helps! vlar 1 Link to comment
vlar Posted December 22, 2021 Author Share Posted December 22, 2021 It says that the workflow is invalid and I'm unable to import it. However, I'm impressed by that kind of support here. Also, I'm eager to see what has been done as I feel like it would unlock many doors Link to comment
Vero Posted December 22, 2021 Share Posted December 22, 2021 @vlar Could you confirm you're using Alfred 4.6.1? The other reason you may see "unable to import" is if you're using a browser or post-download third party unarchiving tool that's trying to unarchive the workflow. If that's the case, either disable the tool or use an alternative browser. vlar 1 Link to comment
vlar Posted December 22, 2021 Author Share Posted December 22, 2021 2 hours ago, Vero said: @vlar Could you confirm you're using Alfred 4.6.1? The other reason you may see "unable to import" is if you're using a browser or post-download third party unarchiving tool that's trying to unarchive the workflow. If that's the case, either disable the tool or use an alternative browser. That's indeed correct. It worked perfectly well and so is the arg you have inserted. Thank you very much for all the follow up. 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