Unfortunately, I can’t reproduce this behavior on my Mac. When I choose the keybinding in MailMate for the OF bundle, I get a OF Quick Entry box populated with the e-mail subject in the Item Name field and the content of the e-mail in the notes area … with the Item Name highlighted.
When I tab, the cursor moves to the notes field (not the project, context, etc. drop downs); but this is the way the Quick Entry box works system-wide for OmniFocus 2.
Thanks for the reply. Now it’s working fine for me. Maybe I should I have done a restart of Mac after installing. Sorry for any unintended confusion. Many thanks for the updated script!
It seems that the Mailmate script no longer works. Anything new we can use? (Was working fine until some point on 4/28. A new version of OF must have broken the script.)
OK, I think this might be the correct bit for create_task:
on run argv
set theFilename to item 1 of argv
set theName to do shell script "head -n1 " & theFilename
set theNote to do shell script "tail -n+2 " & theFilename
tell application id "com.omnigroup.omnifocus2"
tell default document
tell quick entry
make new inbox task with properties {name:theName, note:theNote}
open
set note expanded of tree 1 to true
-- tell application "System Events" to keystroke tab
end tell
end tell
end tell
end run
I moved set note expanded of tree 1 to true to after the open command. It works for me now.
(Keep in mind AppleScript is not my day job. But now it works, so that might be the actual fix. :) )
Thanks for finding a solution! However, what do I do to implement this? All I’m finding within Mailmate is the OmniFocus.mmBundle (I am soooo not a coder). How do I open? With what? Or is there a re-download available somewhere?
Hey Mitchell. I ran into problems with having a hodgepodge of bundles, so I took the time to get things figured out and feel a bit more confident about sharing.
If you download this bundle, install it to ~/Library/Application Support/MailMate/Bundles/, and then relaunch MailMate, it should be good to go. By install, I mean unzip the file and put OmniFocus.mmBundle in that Bundles folder.
This new one is working for me if and only if I already have OF open. If I do not, the quick entry screen appears and acts essentially as a blank modal dialog box.
If I disable this line --set note expanded of tree 1 to true
it works as expected. (You just need to manually open the notes field if you want to edit.)
To disable that line, edit ~/Library/Application Support/MailMate/Bundles/create_task and add -- before set note expanded of tree 1 to true.
The bundle doesn’t work if OF2 was acquired via the App Store; the application ID needs to have .MacAppStore appended to “omnifocus2”. After restarting MailMate, the keybinding now works.