From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brad Bozarth Subject: Re: iPhone ----> org-mode Date: Tue, 24 Mar 2009 22:56:46 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0669869123==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmM6v-0004fH-EF for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 01:57:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmM6p-0004cQ-Mg for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 01:57:08 -0400 Received: from [199.232.76.173] (port=54246 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmM6p-0004cN-GY for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 01:57:03 -0400 Received: from wf-out-1314.google.com ([209.85.200.175]:64744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmM6o-0002WA-Oz for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 01:57:03 -0400 Received: by wf-out-1314.google.com with SMTP id 23so3515933wfg.24 for ; Tue, 24 Mar 2009 22:57:01 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0669869123== Content-Type: multipart/alternative; boundary=000e0cd20b201402ff0465eb2b3b --000e0cd20b201402ff0465eb2b3b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I should note that I tried to clean up the files a bit to make them more readable before uploading, and I realized the "clean" version of reqallxml.awk in the attachment has two silly bugs - "/* nothing for now */ ;" on line 368 should be "; # nothing for now" (C-style comments don't work in awk). And the system call string on line 425 can't be split across lines as it is (again, I was thinking in C). -brad On Mon, Mar 23, 2009 at 1:32 AM, Brad Bozarth wrote: > Sure! As I said, it's a hack - it would obviously be better > implemented with one elisp batch script or something, but I was in a > hurry, and it's been working for me. > > Reqall is a free app kind of like Jott, if you're familiar with that. > You can phone into it (thus this hack would work with a blackberry or > your friend's landline or any phone, not just the iphone) or use an > iphone or web interface to plop in todos (and various other things, > which I don't use). It can publish your items as an RSS feed. Here's > how voice -> org-mode happens: > > I use a cron job every 10 minutes to run get_reqall_tasks.sh > This wget's my reqall RSS feed, runs reqallxml.awk on it (updates my > .org file), and commits and pushes the .org > reqallxml.awk parses the reqall items and saves a flat local DB > (currently just to check for newness of items), doing some simple > formatting on new items and sticking them in my .org file to be > processed later > > Pretty simple - it could be cleaner, and filenames and such are > hardcoded, but it should be easy for anyone to fix it up or simply > replace the filenames and formatting to their liking. It's simple ... > but still feels like magic when I press one button on my iPhone in the > car, and what I spoke is sitting in my gtd.org when I get to the > office :) ... tarball of hack attached. Note that my awk is from OS X, > should work on linux as well though (I first got it running on linux, > but had to escape some / characters in a pattern match to get > reqallxml.awk to work on my mac and haven't tested it again on linux). > > -brad > --000e0cd20b201402ff0465eb2b3b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I should note that I tried to clean up the files a bit to make them more re= adable before uploading, and I realized the "clean" version of re= qallxml.awk in the attachment has two silly bugs - "/* nothing for now= */ ;" on line 368 should be "; # nothing for now" (C-style = comments don't work in awk). And the system call string on line 425 can= 't be split across lines as it is (again, I was thinking in C).
-brad

On Mon, Mar 23, 2009 at 1:32 AM, Br= ad Bozarth <prettygood@cs.stanford.edu> wrote:
Sure! As I said, it's a hack - it would obviously be better
implemented with one elisp batch script or something, but I was in a
hurry, and it's been working for me.

Reqall is a free app kind of like Jott, if you're familiar with that. You can phone into it (thus this hack would work with a blackberry or
your friend's landline or any phone, not just the iphone) or use an
iphone or web interface to plop in todos (and various other things,
which I don't use). It can publish your items as an RSS feed. Here'= s
how voice -> org-mode happens:

I use a cron job every 10 minutes to run get_reqall_tasks.sh
This wget's my reqall RSS feed, runs reqallxml.awk on it (updates my .org file), and commits and pushes the .org
reqallxml.awk parses the reqall items and saves a flat local DB
(currently just to check for newness of items), doing some simple
formatting on new items and sticking them in my .org file to be
processed later

Pretty simple - it could be cleaner, and filenames and such are
hardcoded, but it should be easy for anyone to fix it up or simply
replace the filenames and formatting to their liking. It's simple ... but still feels like magic when I press one button on my iPhone in the
car, and what I spoke is sitting in my gtd.org when I get to the
office :) ... tarball of hack attached. Note that my awk is from OS X,
should work on linux as well though (I first got it running on linux,
but had to escape some / characters in a pattern match to get
reqallxml.awk to work on my mac and haven't tested it again on linux).<= br>
-brad

--000e0cd20b201402ff0465eb2b3b-- --===============0669869123== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0669869123==--