This is really exciting: thanks for your hard work,
haraldmartin. However I'm coming up with the following error message when I run the Sync OmniFocus with Safari.app:
Code:
sh: /Applications/OmniFocus: No such file or directory [Edit] [OK]
Clicking OK dismisses the dialog box and quits the application. Clicking Edit opens the AppleScript in Script Editor.
I am using Leopard. I have installed the Ruby Gems. I have the Developer Tools installed. I am using a non-administrator account. I haven't got any other data bookmarks in Safari.
OmniFocus is stored at /Applications/OmniFocus on my machine (so there
is such a file or directory!).
The background: the first time I ran the script, it evidently did something but didn't complete (I never got a confirmation dialog; the Sync .app just quit after a fairly short while). When I went to my bookmark in Safari, I saw that data had been added to the URL field, but opening it revealed a white page: the same result when viewed on MobileSafari. Viewing the source of the 'blank page' revealed that the script had evidently put in some of the necessary CSS into the <head> section but nothing else:
I was going to post everything that was included in the source code here, but it seems that there is a 10,000-character limit on Forum posts (fair enough), and posting everything just pushed my message over the limit to 10,433 characters. Effectively, the script has managed to generate Base64 data which translates as far as ".proje" (it cuts out in the middle of the word!) in the source of the viewed bookmark.
Meanwhile, I saw that I had a number of archived builds of OmniFocus sitting in my /Applications/ folder, left there by the Automatic Updater. I moved those to the Trash—after doing this I tried running the Sync .app again, but that resulted in the error message I quoted at the beginning of this post. I quit and restarted OmniFocus, and then logged out and logged in again, but neither of these had any effect—always the same error message.
Sorry that this is such a long post but I would rather be thorough: this script package looks like it would be super-useful for me so I'm keen to get it working! Thanks again for your efforts.