From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borbus Subject: Re: Non-interactive insertion of future-dates Date: Wed, 25 Jan 2012 17:37:07 +0000 Message-ID: <4F203DC3.3020301@gmail.com> References: <87sjj3d98v.fsf@rman-office.uni.lux> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6mc-0001pa-8z for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:37:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq6mW-0003hX-CB for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:37:18 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:43412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6mW-0003hP-2B for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 12:37:12 -0500 Received: by wgbds1 with SMTP id ds1so3378783wgb.30 for ; Wed, 25 Jan 2012 09:37:10 -0800 (PST) In-Reply-To: <87sjj3d98v.fsf@rman-office.uni.lux> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 25/01/12 16:42, Simon Campese wrote: > I want to setup a capture-template that sets a > SCHEDULE-property in the future (say one week from today) without any > user interaction. > > Currently, I almost achieve this by inserting the line > > :SCHEDULED: <%(org-read-date nil nil nil nil nil "+1w")> > > into my template. When I now call the template, I end up in the > date-time-prompt, with "+1w" prefilled, so that manually have to press > enter. I think what you want is to use the parameter from-string which doesn't ask for a user input at all but just uses that string as if you did input it interactively: (org-read-date nil nil "+1w") -- Borbus.