Outlook to Omnifocus2 – take 10

Cursor_and_Searching__Drafts_ outlook to omnifocus2 Outlook to Omnifocus2 – take 10 Cursor and Searching  Drafts  300x115

This is the 10th installment of my little OmniFocus script which will turn Emails into tasks. This version has only been tested with the beta versions of OmniFocus2. It will most likely not work with OmniFocus 1. For OF1 please use the latest version here.


  • updated the script to work with Omnifocus 2
  • unfortunately bringing Omnifocus to the foreground after adding the task does not work


  • fix for empty subject lines (provided by Paul and Peter)
  • added mail headers (from, date) to content of the note (provided by Paul)
  • does not rely on a separate jar tool anymore and should therefore be more compatible with older Mac OS versions. (courtesy of someone on the omnifocus forums whos name I forgot unfortunately)
  • configuration options
    • delete mail after turning it to an omnifocus task
    • target mail folder for moving the processed mail (note that this does not work in combination with mail deletion, please choose either delete or move)
    • bring omnifocus to the front
    • put cursor into a specific field in the quick entry panel
    • open quick entry panel (or just add the task silently to inbox)

Install instructions:

  1. Double click the zip file to extract it
  2. Copy the contents of the zip file to <userhome>/Documents/Microsoft User Data/Outlook Script Menu Items (you can do this even easier by opening Outlook, selecting the script menu item “About this menu…” and then click “Open Folder”. Update: on the latest version of Outlook this location is now <userhome>(Library/Applications Support/Microsoft/Office/Outlook Script Menu Items (thanks Mike for noting that)
  3. that’s it

Note to non-english office users:

Your Outlook Script Menu Items folder is in a different location. Please go the route via “About this menu” explained in point 2!

Usage instructions:

  1. select a mail in outlook
  2. open the script menu and choose  ”Send Outlook to Omnifocus” (see screenshot) or alternatively just press CTRL+O (o, not zero)

Configuration instructions:

So if you want to tweak the settings of the script, bring up the file in the outlook menu items folder and double click it.

This will open AppleScript editor (if it does not, then you can try right click and choose Open with…). In applescript editor you will see a configuration block on the top of the file. Change the values as documented in the script, save it and you should be fine.

Note that a few settings rely on other settings to be configured (i.e. currently omnifocus activation will only be invoked if the quick entry panel is switched on). If you find those restrictions too cumbersome, let me know and I will look into that.



30 Gedanken zu „Outlook to Omnifocus2 – take 10“

  1. Thanks for the update, but unfortunately, the file that is created appears to be corrupt in some way; whenever I double-click on the attachment, I get the following message in a dialog box in Outlook:

    “OutlookMsg132971.olk14_message” is damaged and can’t be opened. You should move it to the Trash.

    Any ideas?



    1. Same for me, any chance you’re releasing another update to fix this? or is there something wrong on install? thanks for all the hard work…

      1. @Brett and @Adam, can you send me one of those outlook files? It works fine for me, please also state which version of OF2 and Outlook you are using. Finally let me know where those files are stored for me this is


      1. @Matt, note that this version of the script is designed to work with OmniFocus 2. If you are still using OF1 please use the older version of the script.

  2. Hi Rainer,

    I used your OF1 script – brilliant work !! Now with OF2 I’m running into the same issues, as mentioned above:

    „OutlookMsg1681191.olk14_message“ ist beschädigt und kann nicht geöffnet werden. Es empfiehlt sich, das Objekt in den Papierkorb zu bewegen.

    I’m running Outlook Mac 2011, 14.4.1 – 140326 – on your folder question above: I just have /private/var/folder/zz …. there is no vs ..

    I guess the whole community is desperately waiting to get your version working again, as this is the best since sliced bread 🙂

    Thank you for your hard work & dedication to this !!!


    1. … and my mail message get’s stored at: /private/var/folders/27/y_6tmwrj3mg5ycl_l3yh316r0000gn/T/com.omnigroup.OmniFocus2.MacAppStore

      … but even when trying to open it from the finder, that same arrow message appears … hmmmm

  3. Hi Rainer,
    thanks for your replies…we’re clearly all keen for this to get resolved so anything I can do to help you would be great.

    Location of a test file is: /private/var/folders/zf/pnt5m3896n90cntcz5kk2rt80000gn/T/com.omnigroup.OmniFocus2

    I’m using Omnifocus 2 Pro (purchased through website, not app store)

    Outlook version is: 14.3.4 (130416)

    Do you have an email address I can send the screen grab error and sample file to?


  4. All,

    I solved the problem (at least for me) – I went into the script and changed the section that sets the location to store the attachment and replaced the old email message suffix (“olk14_message”) to the current one (“.eml”) and now the link back message is created properly. Here’s the revised section of the script I’m referring to:

    — set the path to a temp area on your HD to temporarily store the attachment to be loaded into OF
    set theFileName to “/tmp/OutlookMsg” & theID & “.eml”
    if (attachMailToOFTask is 1) then
    tell application “OmniFocus”
    log “saving the file: ” & theFileName
    end tell
    save theMessage in theFileName
    end if

    Hope that helps!

    Best regards,


    1. Hi Adam,

      bingo – works for me now as well – just double-clicking the icon in OF2 and is opens the message within Outlook – seems like a solution to me –

      Great stuff !!!

  5. Rainer,

    I didn’t need to select Outlook; simply double-clicking the attachment opens the message as expected. I assume it’s because .eml files probably default to opening in Outlook.

  6. This can also work with Outlook 14 if the property “attachMailToOFTask” is set to 0.

    I wanted to ask: is there a way to include a link to the original message so a double-click would open the message in Outlook? As context: A portion of my workflow involves creating OF tasks from Outlook emails and then working on them by opening the email messages and replying to them.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.