OmniFocus 3 with Outlook 2016

Does anyone have any Outlook Email Scripts that are working with OmniFocus 3?
The scripts that I was using with OF2 are causing issues.

See this thread

I just tested the Alfred workflow incorporating the script. It works.

Does this work with omnifocus 3? To be clear, there was an updated one by @zzamboni, and it looks like that one broke.

@checkingthingsout - my script (here) has continued to work with OmniFocus 3. What problem did you have with it?

@zzamboni back in the days of older outlook and older OF, even if you were using the Outlook Mac Application (rather than hitting outlook in a web browser) it would include a link to the email. So from OF I could double click that link and open up the explicit email that Iā€™d previously captured.

Is this now impossible since Outlook removed native AppleScript support? Was nice to be able to open the exact email to respond to from OF. =)

Yes it works with OmniFocus 3. I used it this morning.

This is the error I am getting with OF3 with zzamboniā€™s script.

Exception raised while sending -willSave: Unable to fulfill fault: Error Domain=com.omnigroup.framework.OmniDataObjects.ErrorDomain Code=10 ā€œUnable to fulfill fault.ā€ UserInfo={com.omnigroup.framework.OmniBase.ErrorDomain.FileLineAndNumber=/Users/Shared/omnibuild/ReleaseProduct/Source/OmniGroup/Frameworks/OmniDataObjects/ODOEditingContext-Internal.m:549, NSLocalizedDescription=Unable to fulfill fault., NSLocalizedRecoverySuggestion=Object with ID ā€˜<ODOObjectID:0x600000836ca0 Attachment/ljygBWAOqsE>ā€™ is inaccessible.}

So with any scripts for Outlook there are a number of ways to do this.

  1. use any third party app for activating apple script.
  2. Use Automator to create an automated script, and then tie it to a shortcut. There are a number of HowToā€™s on the web for AppleScript in Automaker and shortcuts.

I am using it in Alfred. Basically what I am saying is this script from @zzamboni works with Alfred/OF2 but not Alfred OF3.

@checkingthingsout OK - I just noticed Iā€™m getting the same error as you. My Chrome-to-OF script is also not working. This was working a few days ago, so it must be some recent change in OF3. Iā€™ll take a look ASAP.

Thank you - you are incredible.

@zzamboni
I just put your script as is in to my system and it works. I am activating it via AppleScript directly from ā€œBetterTouchToolā€

@checkingthingsout it seems the problem is in the quick dialog entry. If you pass the ā€œnodialogā€ argument to the script, then it works fine for me. For example, the following gives the error:

osascript outlook-to-omnifocus.applescript

But the following works:

osascript outlook-to-omnifocus.applescript nodialog

There must have been some change in the quick entry AppleScript interface which I have to figure out.

@yury: Iā€™m glad the script works for you! Not sure what the difference is. Maybe slightly different versions of OF3?

Isnā€™t the problem that without the quick entry you canā€™t direct where the action goes?

Glad to see this discussion. I emailed support a few days ago because my Outlook to OF script has also broken in OF3 and it seems related to the quick entry panel. This very simple script reproduces the problem:

tell application ā€œOmniFocusā€
tell quick entry
set _task to make new inbox task with properties {name:ā€œyeyeā€}
end tell

If I run this and then invoke the quick entry window, the task is there, but hitting ā€œsaveā€ does not add it to the inbox like it used to, or to anywhere else in OF. Setting a tag for the task in the quick entry panel causes OF to crash.

Iā€™m also somehow not seeing this line in the script.

@checkingthingsout without the quick entry dialog, the task gets put directly into the Inbox, from where you can classify it. Also, the line I showed is not in the script - itā€™s an example for how to execute the script from the Terminal, using the osascript command, with and without the nodialog argument. You need to adjust the argument depending on how you are executing the script.

@genecivillico thanks for the minimal example - I see the same behavior (task appears in the dialog, but pressing ā€œSaveā€ does not actually create it).

@zzamboni thank you. I thought the quick entry dialogue you added was an incredibly powerful addition to the script. it would be terrific to preserve it somehow.

@zzamboni cool. I feel like something must be awry here since selecting a tag in quick entry shouldnā€™t crash OF.

@zzamboni - Ahhh. that might be it. I am using Beta version, which sound like it is fixed.

I guess you might want me to test somethingā€¦ just PM me.