I want to take it to the next level and combine these two scripts above. Then it will be a perfect local alternative to ReadWise. One could simply dump all quotes in a single draft and based on line, extract one of them, pass as variable and get alert with one of quotes.
I tried to modify different parts of these scripts, but couldn’t get my head around how to make it work.
Just modify the function in the random chooser to return the UUID (no return was defined for the function previously) and not open the draft, then use that function call as the input to the find rather than the hard coded string. There does not seem to be any reason not to put them into a single step in a single action.