View Single Post
Hi

here is the script I've been using for a week or two to export my OF tasks into a Safari (data)bookmark to make my tasks available even when I'm offline.

The html export script is based on the script in the beginning of this thread but I had to simplify the html a bit (and remove almost all javascript) since Safari seems to have problems with it when used as a bookmark.

I'm running this script as a Launch Agent every second hour, configured using Lingon so the bookmark/data is up to date the next time I'm syncing my iPhone.

Please backup you bookmarks and other data before running it. I'm not responsible for any data loss, so please be careful.

Installation:
  1. Unzip the files wherever you like
  2. Create a new bookmark in Safari with address "data:text/html". Choose a name you like (mine is "ToDo")
  3. Make sure you have Apple's Developer Tools installed (can be found at developer.apple.com or on your OS X installation disk
  4. If you're not on Leopard, install Rubygems
  5. Install the markaby gem: "sudo gem install markaby" from the Terminal
  6. Install the appscript gem: "sudo gem install rb-appscript" from the Terminal
  7. Run the .app script and see if your tasks get exported

Make sure you have set iTunes to sync Safari's bookmarks.
The script is kind of a hack so you might need to fix it (like change the path to growlnotify) but it works for me like this.

Note: It's the .app or the ruby (.rb) script you should use, the other files (css, js etc) are just helpers.

Get it here
Attached Thumbnails
Click image for larger version

Name:	of-1.jpg
Views:	1220
Size:	11.4 KB
ID:	364   Click image for larger version

Name:	of-2.jpg
Views:	1141
Size:	11.4 KB
ID:	365  

Last edited by haraldmartin; 2007-11-13 at 01:17 AM.. Reason: better instructions