From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Urs Rau (UK)" Subject: Re: org-mac-protocol usage example Date: Thu, 30 Dec 2010 11:17:17 +0000 Message-ID: <47F97134-FA07-4348-8160-E8B760424103@uk.om.org> References: <716E61BC-1F5A-462A-9124-30FBCC6EA02A@uk.om.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56748 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYGVs-00068m-Uy for emacs-orgmode@gnu.org; Thu, 30 Dec 2010 06:17:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PYGVr-0006b2-AA for emacs-orgmode@gnu.org; Thu, 30 Dec 2010 06:17:44 -0500 Received: from mail1.itdojo.org ([217.33.40.109]:14236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PYGVq-0006ad-UK for emacs-orgmode@gnu.org; Thu, 30 Dec 2010 06:17:43 -0500 Received: from qts-fe2.global.local ([10.245.0.30]) by mail1.itdojo.org (8.13.1/8.13.1) with ESMTP id oBUBHJKw006883 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 30 Dec 2010 11:17:25 GMT In-Reply-To: <716E61BC-1F5A-462A-9124-30FBCC6EA02A@uk.om.org> Content-Language: en-US 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: "Urs Rau (UK)" Cc: Org Mode Guys,=20 I am still struggling with this. the main problem is making sense of the fo= llowing part of instructions on the org-mac-protocol.org installation page,= basically how to call on the emacs-server from one of the many org-mac-pro= tocol supported apps. quoted from: https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d= 9049b06344b7b865/org-mac-protocol.org > : ("AppleScript remember" ?y "* %:shortdesc\n %:initial\n Source:= %u, %c\n\n %?" (concat org-directory "inbox.org") "Remember") > =20 > : ("AppleScript note" ?z "* %?\n\n Date: %u\n" (concat org-director= y "inbox.org") "Notes") > =20 quoted from: https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d= 9049b06344b7b865/org-mac-protocol.org > **** Create =3D*Remember*=3D templates >=20 > #+BEGIN_SRC emacs-lisp > (setq org-remember-templates > '((template 1) > (template 2) > ... > (template n))) > #+END_SRC > =20 > Two separate =3D*Remember*=3D templates are required, one for > =3Dorg-remember=3D and one for =3Dorg-note=3D. Two examples: > =20 How do the templates relate to using 'n' and 't' for notes and todos, in mo= st other examples? What are the parts of the remember template that relates= to that choice? What is the reference later oin the page meaning?=20 quoted from: https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d= 9049b06344b7b865/org-mac-protocol.org > If you choose to alter the template selection characters, you > *must* alter =3DtheProtocol=3D variable in =3Dorg-remember.scpt=3D a= nd > =3Dorg-note.scpt=3D to reflect your changes. What are the 'defaults' or 'built-in' ones?=20 Should this actually use remember or should this now be capture instead? Wh= at would need to change to use capture? And as a last but maybe the most central question, of mine, what do I do wi= th the last two "AppleScript" lines in the above section where I am coming = unstuck? How or where do I enter this on a Mac OS X Leopard 10.6.5?=20 quoted from: https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d= 9049b06344b7b865/org-mac-protocol.org > #+BEGIN_EXAMPLE > ~/Library/Scripts/org-link.scpt > org-link-tabs.scpt > org-remember.scpt > org-note.scpt > orgQSLib/escape.rb > getEmacsClient.scpt > getItemMetadata.scpt > #+END_EXAMPLE Are the above installation instructions of copying the scripts to the users= Library/Scripts directory still correct with Snow Leopard and it's usage o= f services? Thanks for any help with taking this to a working setup. I promise that I w= ill document my findings on worg. Regards, On 21 Dec 2010, at 22:02, Urs Rau (UK) wrote: > Sorry, if this is soo obvious to all you regular emacs and org-mode users= . But I am a newbie when it comes to emacs and especially org-mode, I just = don't see the tree for the forrest. >=20 > I have installed the org-mac-protocol as per it's webpage at=20 >=20 > https://github.com/claviclaws/org-mac-protocol/blob/master/org-mac-protoc= ol.org >=20 > I am running on Snow Leopard 10.6.5 under "GNU Emacs 23.2.1 (x86_64-apple= -darwin, NS apple-appkit-1038.29) of 2010-05-09 on black.local" and in the = Install instructions o that page, I made it all the way down to=20 >=20 >> and add org-mac-protocol to External packages >>=20 >> Start emacsserver >> (server-start) >>=20 >> Create *Remember* templates >=20 > And here is where I get "stuck", the sample;e templates don't make sense = to me, and besides I already have working ones in my .emacs anyway, one for= todos and one for notes. >=20 > How do these templates relate to either org-capture or org-remember? And = what are the default selectors? Is it "t" for todo and "n" for notes? >=20 > I have the following org-capture templates already working for me >=20 >> (setq org-capture-templates >> '(("t" "Agenda Todo" entry >> (file+datetree "~/org/tasksnotes.org" ) >> "\n\n** TODO %?\n%T\n\n%i\n%a\n\n\n" >> :empty-lines 1) >>=20 >> ("n" "Agenda Notes" entry >> (file+datetree "~/org/tasksnotes.org" ) >> "\n\n** %?\n%T\n%i\n%a\n\n\n" >> :empty-lines 1))) >=20 >=20 >=20 > How or where do I now save or put the applescript? and how or where from = do I call it up? What are the steps I have to do, leading up to a new todo = or note being saved to the named buffers. >=20 > I have the *.scpt files in the ~/Library/Scripts/ folder (which I had to = create btw)=20 >=20 > A very simple one or two sample in a step by step format would help e gre= atly. maybe one for iCal for creating a todo from an iCal event and one for= a note for an apple mail item?=20 >=20 > step 1 open ical > step 2 highlight or mark event > step 3 ???? > step 4 ??? > step 5 switch to emacs and find new todo in ..... >=20 > Thanks for any help or pointers, >=20 > Regards, >=20 > --=20 > Urs Rau >=20 >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=20 Urs Rau