Outlook to Omnifocus, take 9 (Updated)

Outlook to Omnifocus, take 9 (Updated) outlook

This is the 9th installment of my little OmniFocus script which will turn Emails into tasks. This is a minor fix to support foreign character sets. Please let me know in case you are experiencing problems.

Changes:

  • added support for foreign characters (provided by Andrew)
  • Update April 22nd: Re-uploaded another version of the script which should work fine with the latest Outlook update

Features:

  • configurable growl notifications (provided by Paul)
  • 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
    • growl enabled
    • 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.

Download

Outlook2Omnifocus-v14 (updated 2013-05-10, same as v12,v13 but I made sure its compiled as a bundle)

48 Gedanken zu „Outlook to Omnifocus, take 9 (Updated)“

  1. Hi Rainer

    Thanks for your script. I used it for a while and now updated to your latest version. Unfortunately Outlook returns an error message, saying:

    „Skriptfehler: Microsoft Outlook hat einen Fehler erhalten: current messages kann nicht in Typ specifier umgewandelt werden.“

    Which should roughly translate to:

    „Script error: Microsoft Outlook has received an error: current messages can not be transformed into type specifier.“

    Have you come across this? Can you advise?
    Best regards from Hamburg.
    Chris

  2. Gents,

    Since I updated Office 11 to SP2 (last weekend) the scripts doesn’t work anymore.
    I found on the internet Microsoft changed the script folder to another location with the update to SP2: ~/Library/Application Support/Microsoft/Office/Outlook Script Menu Items
    So I copied the latest version of your script to that folder, but that doesn’t seem to work. When pressing „ctrl“ + „O“ I receive „Scriptfout: Microsoft Outlook kreeg een fout: current message kan niet in type specifier worden omgezet“ or in English „Script error: Microsoft Outlook received and error: current message cannot be converted in type specifier“.

    Is there a solution for this?

    Thanks

    B.

    1. Hi

      I received a couple of reports on this error. I will need to investigate and will probably look at it on the weekend. In the meantime, I would be interested if you are more successful with any of my previous versions.

      thanks
      – Rainer

      1. Hi Rainer,

        I am getting the same error. I also tried with the v9 script and received the same error.

        Yesterday I received a Microsoft update for Office. My Outlook version is 14.2.0 (120402).

        Thanks,
        pk

  3. Does this work between Outlook on my office Windows PC and my personal MacBook Air with OmniFocus??? or do both applications need to be on the same computer?

    Respectfully,

    Mac

  4. Is there any possibility that this script could work with the Microsoft Outlook 2010 (Running in Parallels)? Unfortunately I have to run Outlook 2010 (Windows) as our exchange server is quite old (2003). That would be awesome!

  5. It looks like the script menu has been changed from what you have in the installation instructions, at least in Lion and Outlook 14.2.2. It is now under Library/Applications Support/Microsoft/Office/Outlook Script Menu Items. Copying it into the other location doesn’t make it accessible.

  6. I followed your instructions, however, when I hit Command o it will only post whatever is highlighted to my OF inbox. Is there a way to post the entire email or add some quick entry notes to it before it posts?

    1. hmm, you should see the quick entry field which has a link to the mail embedded. It sounds as if CMD-O doesnt trigger my script but something else. Can you try to invoke the script via the scripts menu item and see if that makes a difference. Test Case: Select an email in the list, then go to the scripts menu and execute the script.
      Also, did you modify the script file? It allows you to configure whether the quick entry will pop up or whether it will go straight to the inbox. By default it pops up the quick entry.
      Finally if nothing else helps, let me know which version of outlook and OF you are using. Havent used outlook for a while so maybe there was some change which affects the script in any way.

  7. Hi Rainer,

    Am using the script for outlook 2011 which allows me to convert my emails into Task without deleting email and I would like that to continue. However I would also like that I should be able to reply to the email from omnifocus itself.

    Please let me know how can i acheive that as i understand your script enables replying to emails from OF itself however It also delet’s email from Outlook

    Best Regards,
    Collin

    1. replying from OF is going to be tricky. Not really sure how that should work from a UI perspective even. However, the script has a bunch of configuration parameters at the top of the file that will let you control whether emails are deleted or not.

  8. Greetings – I am running OS X 10.8.2 and Outlook 14.2.5 and also am receiving the aforementioned error message. I am however able to run the script from within AppleScript. Any suggestions?

    1. I tried it on a freshly installed machine and I only initially got „Script error: No Error“ and after a few attempts this went away (although I didnt really change anything). You can try to rename the .scpt to .scptd and see if this changes anything (probably not). Let me know if you see anything in the system console.

  9. Seeing a couple of errors:
    (1) When i run the script, i get an annoying error message:
    „Script Error: No error.“ I don’t wnat to know that there is no error

    (2) The email is not being moved to the desination email folder.

    I am running OS X 10.8.2 and Outlook 14.2.5 and Script V12

    Thanks,

    1. @Nitin, ad 1) I had this too on a fresh installed machine, but after a little while it went away. Try renaming the script from .scpt to .scptd (even though mine started working before that)
      ad 2) did you change the script to
      property moveMailToFolder : 1
      and make sure that the target folder exists?

      -- configure the target folder name to where the mail should be moved. Needs to exist first
      property targetMailFolderName : "test"

  10. Works a treat, thanks a mil. I really missed not being able to copy over when I upgrade to outlook.
    On Snow Leopard, outlook 14.2 and the ^O works fine too.

  11. Hello. Script seems pretty useful but I also have the problem where every time I execute the script I get ‚No Error‘ and the email doesn’t get moved to the proper folder withing Outlook. The entry does get created in Omnifocus though.
    If I run the script through the AppleScript Editor it works fine, no error, message gets moved in outlook, omnifocus entry created.
    If I try the suggestion to rename the script from .scpt to .scptd the script becomes unusable. Some sore of compiling error.

  12. Hello. Just to give an update. Script seems working now. Not sure why. I simply duplicated the script, tested again through the applescript dropdown menu and it worked. Then noticed Ctrl-o worked. Deleted the duplicate and it still works!? Only thing I noticed is the file size seemed to have changed for some unknown reason when duplicated. Again, when I deleted the duplicate, the orignal then got bigger..

    Mikes-MacBook-Pro:Outlook Script Menu Items mike$ ls -al
    total 200
    -rw-r–r–@ 1 mike staff 42078 Mar 10 01:05 [OF] SendOutlookToOmniFocuscO.scpt

    Mikes-MacBook-Pro:Outlook Script Menu Items mike$ ls -al
    total 616
    -rw-r–r–@ 1 mike staff 152954 Mar 10 01:21 [OF] SendOutlookToOmniFocuscO copy.scpt
    -rw-r–r–@ 1 mike staff 42078 Mar 10 01:05 [OF] SendOutlookToOmniFocuscO.scpt

    Mikes-MacBook-Pro:Outlook Script Menu Items mike$ ls -al
    total 416
    -rw-r–r–@ 1 mike staff 152954 Mar 10 01:22 [OF] SendOutlookToOmniFocuscO.scpt

  13. I’m hoping you can help me….I tried downloading your script and using it in my Outlook 2011 (version 14.2.5) on my MacBook Pro running OS 10.8.3 and I get this error message: „This script contains uncompiled changes and cannot be run“ Any ideas? Thanks!

  14. When I put the version 13 file into the folder nothing shows up in the menu, but when I tried it with version 10 is showed up right away. I am using Outlook 2011 version 14.3.2. Any help would be appreciated.

    1. @Brian, Debbie, I have uploaded a version that is exported as a compiled script bundle, this should hopefully fix both of your problems. Since Mountain Lion apparently treats applescripts different if they were saved on the local machine, it is hard for me to test. Thanks for your patience.

  15. Just a quick word to say thanks for a great addition to Focus. I had to replace the long-dash character with a pair of dashes (–) for the script to compile, but I note you’ve already spotted this 🙂

    Good job chap! Cheers…Ben

  16. I just updated omnifocus and this script doesn’t work anymore. I get an error that says „a real number can’t go after this identifier“ – can you help? I’m not an applescript expert by any stretch but I’ve been using your script and love it.

    Thanks,

    Elena

  17. Rainer,

    Using the OmniFocus 2 public beta builds, I get the following error when I run the latest version of the script:

    Script Error: OmniFocus got an error: Unable to read file from ‘/temp/OutlookMsg1157735.olk14_message’.

    The message is correctly sent to the quick entry window, but the link back to the original message is now missing (which is critical for me). Any idea what’s happening here?

    Thanks!

    Adam

  18. Further to my request above, there’s a post on the OF2 forums that outlines changes to the scripting implementation that might be useful in solving the problem. That post can be found here:

    http://discourse.omnigroup.com/t/what-to-know-about-the-applescript-changes-in-omnifocus-2/33

    If there’s anything that can be done to update this script so that it will continue to work with OF2, I (and I’m sure others) would certainly appreciate it!

    Thanks,

    Adam

  19. Hello:
    This is a great script and I’ve been using it successfully for quite a while. Not sure if you’ve had a chance to work with the new OF betas but I notice something breaks when using this script. The note still gets created in Omnifocus but it doesn’t move the message to the correct folder anymore. I get a Script Error: OmniFocus got an error: Unable to read file from’/tmp/OutlookMsg…….
    I move back to the original OmniFocus, all is good. Since it creates the note, I’m hoping its a small tweak that I’m overlooking in the script.
    Any thoughts? Appreciate the work!

Schreibe einen Kommentar

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