Thank you good Sir, much appreciated. I was digging in the wrong bit of code! Seems obvious now, clearly forgotten most of what I taught myself many moons ago.
Can anyone figure out what I’m doing wrong here (using Apple Mail).
I go into mail and highlight a message
I run the script and it stops on line: var tp3 = Application("com.hogbaysoftware.TaskPaper3”), with Error -2700
I dialogue box appears in mail which says: "TaskPaper got an error: Can’t make class «class TPer».
com.hogbaysoftware.TaskPaper3, as well as com.hogbaysoftware.TaskPaper3.direct, exist, they are in my Application Scripts folder.
This is fantastic, @complexpoint, thanks very much for doing this, it works great for me.
Out of curiosity, do you have any sense how hard it would be to convert the script to work with Thunderbird? It’s my preferred mail client, and I’d love the ability to have this there. I suspect this only works with applications that have a callback url scheme defined, but I’m not sure if that’s a blessing from Apple or if developers can just do that.
how can I activate a TP3 file to add (default file in general). if the file is not in the front and opened, the script does not add items to inbox.
thanks
There might be better ways, but here’s one way to open a document from the Desktop and make it the current document. Should work in both cases where document is not yet opened, or when it is already open, but just not frontmost:
thanks
I am trying to get some updates and add them to a current open file. There is no inbox or project yet. I am trying to use various Taskpaper files inside Devonthink and use them to manage individually rather than one big doc
Current all the updates go with the script to the bottom on the document where as I want to view the most recent updates on the top.
Here is a (Sierra onwards) snippet which adds three lines of text (from an options array at the foot of the script), to the start of the open document.
yes works great in that order (which are in chronological order when I add ie the latest goes to the top)
eg. on an email thread I want to capture various emails (only relevant ones) and keep filing them into a Taskpaper doc
eg…
msg-c (today)
msg-b (2 days go)
msg-a (3 days ago)