I’m trying to embrace the new spirit of Omni Automation, but I’ve run into a real problem in trying to use the Task.byParsingTransportText function when processing emails.
Both Joe Buhlig and Rosemary Orchard have released scripts for processing Inbox tasks that use the Task.byParsingTransportText function. The problem is that after a task is created from using MailDrop and is parsed by the function, the contents of the original email message is dropped from the Notes field. That means that the link back to the original email as well as the content of the email are lost to Omnifocus. It looks like Rose is attempting to restore the original task’s note into the new task note in her script (locate here - https://pastebin.com/rLzNt5sS), but it does not seem to be working.
The behavior of the parse function in OmniJS is not the same as it was in AppleScript. The email link and the contents are preserved in AppleScript.
Does this issue have to be fixed in the function itself (ie: is it a bug?) or is there some JS code that could be applied in a plug-in to add the original Note field contents to the new task that is created by Task.byParsingTransportText function?