Outlook to Omnifocus, take 7

This is the 7th installment of my little OmniFocus script which will turn Emails into tasks.

Changes:

  • added support for Growl 1.3 (thanks to John Duprey), if you are using Growl 1.3 please uncomment the following line (by removing the starting „–„)

    -- tell application id "com.Growl.GrowlHelperApp"

    (if you cannot find it, search for EDITME GROWL in the source code)

  • added support to move the processed mail to a folder

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”.
  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

OutlookToOmnifocus-v9.zip

13 Gedanken zu „Outlook to Omnifocus, take 7“

  1. I have an interesting error occurring with this script. I’ve just moved to a new laptop with Lion. My old laptop had Growl, and also was using the „take 6“ version of this script, and I had no issues with it. My new laptop doesn’t have Growl (and probably won’t now that it’s $2 and I didn’t use it anyway), and both this version and the „take 6“ version ask me for the location of GrowlHelperApp when I try to run them. I disabled Growl in the script (enableGrowl : 0) and it still does it. Also, AppleScript Editor asks me twice when I open this script where GrowlHelperApp is. Very strange.

    After this, I went through and deleted all the sections that even mention Growl, and both of these errors went away. However, I thought I’d pass it along because, even though the AppleScript should never run the Growl-related code, it still appears to be looking for that for some reason I have an almost completely clean install on my new laptop (didn’t migrate), so it’s hard to imagine it’s something conflicting with it.

    1. the request for the location of growl helper is normal if you open AppleScript editor. I have this too, however, I don’t get the question for Growl when I run the script from outlook. That is very odd. It would be interesting if multiple people have this problem. If yes, I can create a 2nd Growl-less version (I too didn’t spend the 2$ to get constant annoyance :).

      1. Help and patience please … I am new to the Apple world and have never touched code /scripts before … but need to OF and Outlook working together … for you all are doing to make that happen.

        I am running Lion 10.7.2 on a MacMini with Growl 1.3.2. I have Mac MS Office 2011 installed.

        I think I installed successfully the script -OutlookToOmnifocus-v9.zip . I don’t any errors about Growl and I do get some functionality with OF and OL.

        Issue 1: After configuring the script to (… Move mail to a folder) and to accept Growl 1.3 by uncommenting by removing the 2 hyphens from the next line as follows (– if you are using Growl 1.3 please uncomment the following line (thanks to John Duprey for pointing this out)
        tell application id „com.Growl.GrowlHelperApp“

        And then when selecting „Save “ from the Apple Script editor file Menu I get the following error: SYNTAX ERROR: expected end of line, etc but found „if“

        Issue 2: I can not find the „script menu“ in OL

        Issue 3 but I can use CTRL+0, however, it returns the error „Script error“ (Apple Script Utility got an error: Can’t continue <> In this case it did place the email subject in the Quick Entry Dialog but nothing else from the email.

        Hope this is an appropriate way to present my experience. And thank you for your help!!

  2. First, thanks for the great script!

    Few comments:
    If you using Growl 1.3 you should uncomment this:
    — tell application id „com.Growl.GrowlHelperApp“

    and COMMENT this:
    tell application „Growl“

    This is about issue 1 above.

    Main issue for me now: I’am using non latin characters in emails. Some emails with cyrillic characters (not all), when they copied in OF they become unreadable. Something happens with encoding, maybe.

    Anyway – thanks for great job, please continue 🙂

  3. thanks for the great script been using since the beginning. having trouble with v9.

    microsoft outlook error: Can’t make current message into type specifier

    any thoughts?

  4. Thanks for this script! I had gotten an earlier version to work on another machine, but for some reason I am now getting the following error when I try to run it: „Script Error. Microsoft Outlook got an error: Can’t make current messages into type specifier.“

    I am in way over my head when it comes to scripts. I uncommented the „growl“ line you mention; however, this error happened both before and after I uncommented that line (EDITME GROWL…)

    Thanks for any help you can provide! And thanks for making this script available. I am running a MacBook Air with Lion 10.7.2, 1.7 GHz Intel Core i5.

  5. Hi Rainer,
    This script is what I have been looking for for soooo long. Thanks so much for creating it! I have one question: when I run the script (growl disabled / email handling disabled) I get the following error

    „Script error: rm: /tmp/OutlookMsg*: No such file or directory“

    I can hit okay on this error message and then I have my quick add window, so the script actually works, but it generates this error. Any way I can fix it?

    Thanks so much. . .donating now!

    J. Kelly

    1. @James, I will prepare a newer version since there were a couple of problems with newer versions of Growl, will try and fix your problem too in the process. Stay tuned.

Schreibe einen Kommentar

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