emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Agenda on iPhone as HTML


From: Peter Jones
Subject: [Orgmode] Agenda on iPhone as HTML
Date: Wed, 21 Jan 2009 15:17:35 -0700
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (darwin)

I finally have my agenda just the way I like, thanks to custom agenda
block commands.  So the next natural thing to do was to get this
exported so I could see it on my iPhone.

Pending a formal Org iPhone application, I decided to put some HTML on a
web server I control, and access it from my phone.  To make it easier to
make phone calls from the agenda, I also create the proper tel links so
that tapping a phone number tells the iPhone to dial out.

You can see the sed hacking in my super-simple function:

(defun pmade:org-write-agenda ()
  "Write the agenda buffer to a file, and send to pmade.com."
  (interactive)
  (org-write-agenda "~/agenda.html")
  (shell-command "sed -E 's/T:([0-9+-]+)/T:<a href=\"tel:\\1\">\\1<\\/a>/' < 
~/agenda.html | ssh -q pmade.com 'cat > 
/opt/sites/pmade.com/www/private/agenda.html'")
  (delete-file "~/agenda.html"))

Basically, headlines that have something like T:303-555-1212 will have
the number turned into a tel link.

Hope this helps someone else.

-- 
Peter Jones, http://pmade.com
pmade inc.  Louisville, CO US





reply via email to

[Prev in Thread] Current Thread [Next in Thread]