So I currently have the following stamp which works. I had tried to get the code into a "code note", but couldn't figure out the nested quotations.
$TitleEnc=urlEncode($Name);$NoteEnc=urlEncode($Text);$DoUrl="twodo://x-callback-
url/add?task="+$TitleEnc+"¬e="+$NoteEnc+"&tags="+$DoTags+"&due="+$DueDate.for
mat("y-M0-D")+"&dueTime="+$DueDate.format("h:mm")+"&start="+$StartDate.format("y
-M0-D%20h:mm");$DoUrl2="open '"+$DoUrl+"'";runCommand($DoUrl2)So basically, I'm URL encoding a few attributes, which I understand. Then I'm, creating the "URL" string out of a few attributes, then storing in the "DoURL" string. Then I need to wrap that string in a quotation before passing to run command, so I do that in by storing it in the "DoURL2" string. It's these last two steps that I think must be unnecessary and can be stored in a Code Note of some sort, right?
here's the basic form of the url that I need to pass to command line:
Code:open "twodo://x-callback-url/add?task=Testing¬e=theNote"
Let me know if I've left out some important variables / details. As I said, it's working as is, I'm just hoping to learn a bit more about using code notes for this sort of process.