From mboxrd@z Thu Jan 1 00:00:00 1970 From: pete phillips Subject: Re: batch printing of diary/agenda without Scheduled items Date: Thu, 04 Oct 2007 16:55:50 +0100 Message-ID: <32193.1191513350@lap1.smtl.co.uk> References: <20051.1191405892@lap1.smtl.co.uk> <87sl4sb3e7.fsf@bzg.ath.cx> <87k5q4b2ev.fsf@bzg.ath.cx> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdT3M-0005ZF-3Q for emacs-orgmode@gnu.org; Thu, 04 Oct 2007 11:55:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdT3K-0005W2-Oq for emacs-orgmode@gnu.org; Thu, 04 Oct 2007 11:55:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdT3K-0005Vn-Aw for emacs-orgmode@gnu.org; Thu, 04 Oct 2007 11:55:54 -0400 Received: from fw.smtl.co.uk ([193.131.77.174] helo=mailhost.smtl.co.uk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdT3J-0000UH-FV for emacs-orgmode@gnu.org; Thu, 04 Oct 2007 11:55:54 -0400 In-reply-to: <87k5q4b2ev.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org >>>>> "Bastien" == Bastien writes: >> | (org-add-agenda-custom-command | '(("X" agenda "" | >> ((org-agenda-skip-function | (lambda() (org-agenda-skip-entry-if >> 'scheduled 'deadline))))))) `---- Excellent. Thanks for that. I now have a custom shell command which cron can call, and which shows me deadlines but not SCHEULED tasks: -----------print-agenda.sh------------------------- #!/bin/sh # print out agenda without scheduled tasks # relies on creating a custom command on the fly - "X" # (thanks to Bastien) /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el \ -eval "(setq european-calendar-style nil diary-mail-days 7 diary-file \"/home/pete/diary\")" \ -eval "(org-add-agenda-custom-command '(\"X\" agenda \"\" ((org-agenda-skip-function (lambda() (org-agenda-skip-entry-if 'scheduled))))))" \ -eval '(org-batch-agenda "X" org-agenda-files (quote ("~/TODO/HOME.org" "~/TODO/SMTL.org")))' ----------------------------------------------------- Pete