MailAction AppleScript syntax error "Expected end of line but found plural class name." [A: "parse tasks" syntax has changed]

The MailAction AppleScript for OmniFocus 2 is showing a syntax error in both the console logs and when trying to save the script using the AppleScript editor. The error is happening at line 33:

parse **tasks** with transport text theText as single task singleTask

Suggestions on how to fix? I am using a private WebDAV server for syncing, so MailDrop is not an option. (Although if there is a way to implement similar functionality with my own Linux-based WebDAV server, I’d gladly implement it.)

Ah, the syntax has changed a bit. Replace:

tell default document
    parse tasks with transport text theText as single task singleTask
end tell

with:

parse tasks into default document with transport text theText as single task singleTask

I’ll make sure we update that script. Thanks!

4 Likes

Thank you, Kristina!

Sure thing! In the interest of completeness I should mention that the “transport text” syntax has changed too, but that wasn’t affecting this particular script. That is noted in this thread: Updating scripts using transport text