Send a document (or link to a document) to 2do app

I use the 2do app on OSX for reminders, and have been trying to create a script in Hazel to create a reminder. I'm a novice at scripting, but as I understand it 2do does not have Applescript support but does have a URL scheme ( http://2doapp.com/kb/article/url-schemes.html)
After a few searches of similar scenarios I came up with the following shell script:
I don't really understand how it works but it does, creating a new 2do item in the Inbox, with the file name and path as a note. However it has limited usefulness as there is no link to that document, which is what I'd really like to add.
Could anyone provide any guidance on how I might make this more useful by adding a link to the file instead of just its name and path?
After a few searches of similar scenarios I came up with the following shell script:
- Code: Select all
do shell script "open 'twodo://x-callback-url/add?task=Claim reimbursement" & "&Note=" & theFile & "'"
I don't really understand how it works but it does, creating a new 2do item in the Inbox, with the file name and path as a note. However it has limited usefulness as there is no link to that document, which is what I'd really like to add.
Could anyone provide any guidance on how I might make this more useful by adding a link to the file instead of just its name and path?