I would like to know if this possible since I couldn’t figure it out.
I would like to preconfigure the capture clipboard to always be populated with two tags. In my case they would be: send to anki and neurology
Of course as I study I would change the latter term and so forth but prepopulating these two field would be make capturing things in the clipboard a bit quicker since I don’t have to worry about populating the two tags thus saving 3 physical input commands.
to populate the first tag
after the tag is placed the cursor automatically jumps to the body of the capture field so I have to go back and click tags
typing the second tags
So in my specific user case its a bit inefficient and I would like to be customize this process a bit if the app permits this but I don’t really know.
I already have a workspace setup to get all the notes created with those two tags and it helps me a lot.
If you are pre-Monterey, you could do something similar using an Automator workflow for the Quick Action, and using the Drafts URL Scheme instead.
In both cases I’ve used arbitrary tags “foo” and “bar”, with the body of the new draft being the current content of the clipboard. Note you can specify the keyboard shortcut via your keyboard preferences.
Wow, thanks so much !! I’m running Drafts on the Mac mini M1 with Big Sur so I’ll try the first option I think. I’ll let you know how it goes. Gotta love Drafts, doesn’t my request seem sort of logical though as a new feature perhaps. Of course I’m strictly thinking as a non programming kind of a person.
If you want the actual “capture” window as you originally asked, you can also use the below, which will open the capture modal with the information prefilled so you can approve/modify it before the draft is actually created, if that is desireable:
So I was able to customize it like so: drafts://capture?text=||clipboard||&tag=neurology,send%20to%20anki and when I place it in Safari it works like a charm but the setup of the automator is not working for me. Is there an app that does something similar I can buy to run this x-call back url that is easier for us non programming dudes to figure out. I feel like a dweeb just asking but I couldn’t figure out the automator part when the script works so nicely.
I’ve uploaded the Automator file for Droplr, prepopulated with your URL above.
When you download it, you should see a workflow file called “Custom Drafts Clipboard Capture.workflow”.
While I am obviously a trustworthy soul, I am just some guy on the Internet. Downloading and running files without a bit of due diligence is not advised. That’s one of the reasons I posted the details rather than a file. The file tends to hide what it is going to happen, and for all you know, it could be malicious.
Before running this action, I would recommend you do open it in Automator, just to confirm that it is doing nothing untoward. If you should be unsure, do not run it, but I would like to start you off with some good practice around this.
To open the file in Automator, right click on the file, select “Open With”, then select “Automator.app” => NOT the one that mentions the installer at the top, but the one underneath that.
If you were happy with how it looked in Automator, install it by double clicking on it and choosing “Install”.
Installing it will move the file to the Library/Services folder in your home folder. It might open the “Extensions” preferences for you (it did for me). You don’t need to worry about that, but if it does, you may as well keep it open as you will need the system preferences in a moment.
If you want to see the workflow file in your services folder, you will find the Library folder is hidden by default in Finder. If you open Finder, go. to the “Go” menu, then hold down the “Option” key, you will see the option to go to the Library folder appear. You can navigate from there to check that the file is in place if you wish. If you want to edit the URL at a later date, to change the tags, that’s the file you will want to edit in Automator.
In the preferences, if you navigate up one level from “Extensions”, or just open it if it didn’t open before, and then navigate to “Keyboard”, you will see a tab called “Shortcuts”. Select that tab and then “Services” in the list on the left. On the right list, navigate down to the “General” section - you are looking for “Custom Drafts Clipboard Capture”. Here it is in my system:
That error message indicates it is prefixing what is presumably your home directory path to the URL. I’m struggling to see how, given the URL is pretty darn explicit and does not include or invite any insertion of the home path.
Could you try changing the shell drop down from /bin/zsh to /bin/bash for the workflow and run it from inside Automator to see if you get the same result?
I’m wondering if maybe there’s an issue there in your availability of the Z shell.