Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

OmniFocus plugin does not work with AppStore version of OmniFocus

Open mckeehan opened this issue 11 years ago • 1 comments

The OmniFocus plugin uses AppleScript to communicate with OmniFocus. It uses "tell application id" with an id that is not the same as the id used by the app store.

I would propose the following solution.

--- a/plugins_disabled/omnifocus.rb
+++ b/plugins_disabled/omnifocus.rb
@@ -75,7 +75,7 @@ class OmniFocusLogger < Slogger
         values = %x{osascript <<'APPLESCRIPT'
           set filter to "#{filter}"
           set dteToday to setDate("#{timestring}")
-          tell application id "com.omnigroup.OmniFocus"
+          tell application "OmniFocus"
                tell default document
                        if filter is equal to "NONE" then
                                set refDoneToday to a reference to (flattened tasks where (completion date ≥ dteToda

mckeehan avatar Mar 22 '14 12:03 mckeehan

Saw your pull request at #292...

I have the App Store version as well and noticed entries not logged. I patched in your changes for the time being until it's merged into master.

I had to use com.omnigroup.OmniFocus.MacAppStore as the application ID for the tasks to log properly.

colemanm avatar Apr 03 '14 20:04 colemanm