I’d like to adapt Mail.applescript in OmniFocus.app ▸ Contents ▸ PlugIns ▸ BuiltInClippingHandlers.plugin ▸ Contents ▸ Resources so that when I clip a message in Mail, it automatically sets the context to “Mail”. This context exists already in my Omnifocus.
set context to "Mail"
I always receive an error message when trying to clip in Mail. As my Omnifocus is in German, the error in English should be something like:
„«class FCct»“ can not be set as „"Mail"“. Access not allowed.
The original error in German is:
„«class FCct»“ kann nicht als „"Mail"“ gesetzt werden. Zugriff nicht erlaubt.
This doesn’t change if I try things like
property MailContext : "Mail"
set context to MailContext
Then the error code is:
„«class FCct»“ can not be set as „MailContext“. Access not allowed.
Hi! Do you happen to have upgraded to Pro? Custom AppleScripting – including the ability to set a project or context on a task – is a Pro feature, and so in order to accomplish this sort of thing, you’ll need OmniFocus 2 Pro.
That said, it’s important to keep in mind that modifying anything inside the OmniFocus app bundle – including this AppleScript file – is done entirely at your own risk. OmniFocus (and, to a certain extent, OS X) rely on the internals of the application bundle working in certain ways, and changing those inner workings can have unexpected consequences for the rest of the app. At the very least, please be sure your backups are up to date!
And yes, I know it is at my own risk, I keep backup copies of the modified files so that I can always restore the original.
Well, ideal would be something in the preferences of Omnifocus/Clip-o-Tron, where one could decide what information from Mail goes to which field of a new task. But I guess, there are more important tasks to do still, so I thought I help myself :)