From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: How to generate a Unique id to include a headline Date: Wed, 25 Feb 2009 11:02:37 +1100 Message-ID: <200902250002.n1P02bJf001852@mail11.syd.optusnet.com.au> Reply-To: charles_cave@optusnet.com.au Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: binary Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lc7Ee-0007JO-3D for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 19:02:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lc7Ed-0007JC-4Z for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 19:02:47 -0500 Received: from [199.232.76.173] (port=33350 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lc7Ec-0007J6-Vs for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 19:02:47 -0500 Received: from mail11.syd.optusnet.com.au ([211.29.132.192]:44724) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lc7Ec-0006oA-4C for emacs-orgmode@gnu.org; Tue, 24 Feb 2009 19:02:46 -0500 Received: from localhost.localdomain (webmail07.syd.optusnet.com.au [211.29.133.88]) by mail11.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n1P02bJf001852 for ; Wed, 25 Feb 2009 11:02:37 +1100 Content-Disposition: inline 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 Is there a way to add a unique id into the headline assuming the existence of an external comman/script to generate the number? I would like to include a cookie at the end of a headline that would allow me to synchronise my org-mode contents with another application (Listpro on Windows and Palm OS). The cookie would be like a priority [Id 234] I was planning to store the next available id in a text file and have a python script to generate the next available number, write to stdout, then increment the stored value. Thanks, Charles