PDA

View Full Version : OmniFocus to iPhone Bookmarklet [OmniFonecus V0.1]


tdc
2007-09-30, 12:06 AM
Thanks to wonderful groundwork of RobTrew, I have put together a small proof of concept applescript that will pull out all your actions, sort by context and build a web version for you that can be saved as a bookmark in safari, and then after an iPhone sync, will appear in your iPhone Bookmarks.

As the web page has been encoded into a Base64 Data:URI it will always be available for you, even when you have no EDGE, GPRS or WiFi access.

This version is a simple proof of concept - I have plans to allow for changing views and sorting. Also, I was going to add a simple check box for each item so you may mark off tasks as you do them.

Consider this web page version similar to printing out your Next Actions or emailing yourself a copy.

At present you will need to add the web page to your bookmarks manually, I am looking into automating this process.

Once again - a huge thanks to RobTrew.

Cheers

RobTrew
2007-09-30, 12:50 AM
You are very kind. I only sketched these simple traversals in order to find out how to do them. I am delighted if they turn out to be helpful.

Re this build of your app - on a 10.4.1 system it appears with a "not supported on this system" icon, and generates a related message.

tdc
2007-09-30, 01:08 AM
Youre welcome Rob, it was your collection of scripts that alerted me to what was possible.

I am using 10.4.10 - will look into why its not working. Could be the perl script doing base64 encoding.

Here is a different version, let me know if it helps.

RobTrew
2007-09-30, 02:06 AM
That works fine - very elegant !

If no Omnifocus window is open when your script is launched, an NSReceiverEvaluationScriptError is raised.

Without being able to see your code I suspect that you could avoid that by including a test for a window at the start, and creating a new window if needed. e.g.
set oDoc to default document
tell oDoc
if number of document window is 0 then
make new document window with properties {bounds:{0, 0, 1000, 500}}
end if
end tell

drummergirl
2007-10-01, 04:28 AM
Yeah! I can finally actually see my context lists on my iPhone. One issue, tho. It exports *everything* to the phone. So instead of a short list of six errands, I have a huge list of every errand I ever created. Is there any way to have it sync only the active (incompleted) items?

tdc
2007-10-02, 03:38 AM
That is my intention - to offer different views etc. Also working on offering a webpage based submission form that would use your projects and contexts, and then form an email up for you to send to yourself that would then be picked up later and added to OF using one of the groovy mailscripts available.

tdc
2007-10-02, 07:49 AM
Moving this script towards some good functionality, I have added the ability to touch the Context name to expand or collapse the corresponding list of tasks.

Hoping to get a chance tomorrow to be able to select a filter on the tasks displayed.

drummergirl
2007-10-03, 07:13 PM
v0.2 - lookin' good! :)

etvedt
2007-10-15, 06:45 AM
Hi. I´m trying to download the file, but am not able to. It says I have to log in, which I do, than it thanks me for that with a successfull login, before I have to do it all over again. Those times I manage to log in, it can´t find the file.

Ps.

v0.1 is no problem

dmcg
2007-10-15, 11:05 PM
Fails for me with "Some parameter wasn't understood" on 10.4.10

I've love to see the code to debug it, any chance of posting the source?

Thanks

Duncan

etvedt
2007-10-16, 03:02 AM
I was able to download it now, but as the previous reply, I too experienced that "some parameters wasn´t understood".

Richard Flynn
2007-10-19, 02:01 AM
I'm having this problem too. Exciting stuff, though!

avernet
2007-10-19, 03:50 PM
Same problem here: some parameters wasn't understood. But this is very exciting. I love the idea: simple and elegant.

Alex

RuleRulez
2007-10-22, 12:04 AM
Sounds good - can you give some hints to create the bookmark.

Thanks in advance...

Richard Flynn
2007-10-28, 02:32 AM
And in 10.5 the error message has changed slightly, though it's still effectively the same: it now says ‘Some parameter is missing for activate.’ (Great English syntax, that…)

I must admit that I’ve been checking this thread several times a day since first trying the script, hoping to see an update. Portability is the last piece really in my OmniFocus—GTD puzzle, and I’m pretty keen to find that piece!

granin
2007-10-28, 07:42 AM
And in 10.5 the error message has changed slightly, though it's still effectively the same: it now says ‘Some parameter is missing for activate.’ (Great English syntax, that…)

I must admit that I’ve been checking this thread several times a day since first trying the script, hoping to see an update. Portability is the last piece really in my OmniFocus—GTD puzzle, and I’m pretty keen to find that piece!

same thing - doesn't work on Leopard. Please update!

MacSparky
2007-11-04, 04:50 PM
I'm getting the "Some parameter is missing for activate" error with all versions on my 10.5 MacBook Pro

David

www.macsparky.com

haraldmartin
2007-11-13, 01:25 AM
I posted my (a bit more hackish) solution in another thread (http://forums.omnigroup.com/showthread.php?t=5152&page=1#7) that also export your OF tasks as an iPhone bookmark for offline viewing.