emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Urs Rau (UK)" <urs.rau@uk.om.org>
To: "Urs Rau (UK)" <urs.rau@uk.om.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-mac-protocol usage example
Date: Thu, 30 Dec 2010 11:17:17 +0000	[thread overview]
Message-ID: <47F97134-FA07-4348-8160-E8B760424103@uk.om.org> (raw)
In-Reply-To: <716E61BC-1F5A-462A-9124-30FBCC6EA02A@uk.om.org>

Guys, 

I am still struggling with this. the main problem is making sense of the following 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-protocol supported apps.

quoted from:
https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d9049b06344b7b865/org-mac-protocol.org

>      : ("AppleScript remember" ?y "* %:shortdesc\n  %:initial\n   Source: %u, %c\n\n  %?" (concat org-directory "inbox.org") "Remember")
>      
>      : ("AppleScript note" ?z "* %?\n\n  Date: %u\n" (concat org-directory "inbox.org") "Notes")
>      

quoted from:
https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d9049b06344b7b865/org-mac-protocol.org
> **** Create =*Remember*= templates
> 
> #+BEGIN_SRC emacs-lisp
> (setq org-remember-templates
>       '((template 1)
>         (template 2)
> 	...
> 	(template n)))
> #+END_SRC
>      
>      Two separate =*Remember*= templates are required, one for
>      =org-remember= and one for =org-note=. Two examples:
>     


How do the templates relate to using 'n' and 't' for notes and todos, in most other examples? What are the parts of the remember template that relates to that choice? What is the reference later oin the page meaning? 

quoted from:
https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d9049b06344b7b865/org-mac-protocol.org
>      If you choose to alter the template selection characters, you
>      *must* alter =theProtocol= variable in =org-remember.scpt= and
>      =org-note.scpt= to reflect your changes.

What are the 'defaults' or 'built-in' ones? 

Should this actually use remember or should this now be capture instead? What would need to change to use capture?

And as a last but maybe the most central question, of mine, what do I do with 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? 

quoted from:
https://github.com/claviclaws/org-mac-protocol/raw/037288fcd2e8d9ffd6e9811d9049b06344b7b865/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 of services?

Thanks for any help with taking this to a working setup. I promise that I will 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.
> 
> I have installed the org-mac-protocol as per it's webpage at 
> 
> https://github.com/claviclaws/org-mac-protocol/blob/master/org-mac-protocol.org
> 
> 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 
> 
>> and add org-mac-protocol to External packages
>> 
>> Start emacsserver
>> (server-start)
>> 
>> Create *Remember* templates
> 
> 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.
> 
> 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?
> 
> I have the following org-capture templates already working for me
> 
>> (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)
>> 
>>      ("n" "Agenda Notes" entry
>>       (file+datetree "~/org/tasksnotes.org" )
>>       "\n\n** %?\n%T\n%i\n%a\n\n\n"
>>       :empty-lines 1)))
> 
> 
> 
> 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.
> 
> I have the *.scpt files in the ~/Library/Scripts/ folder (which I had to create btw) 
> 
> A very simple one or two sample in a step by step format would help e greatly. maybe one for iCal for creating a todo from an iCal event and one for a note for an apple mail item? 
> 
> step 1 open ical
> step 2 highlight or mark event
> step 3 ????
> step 4 ???
> step 5 switch to emacs and find new todo in .....
> 
> Thanks for any help or pointers,
> 
> Regards,
> 
> -- 
> Urs Rau
> 
> 
> _______________________________________________
> 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

-- 
Urs Rau

      reply	other threads:[~2010-12-30 11:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 22:02 org-mac-protocol usage example Urs Rau (UK)
2010-12-30 11:17 ` Urs Rau (UK) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47F97134-FA07-4348-8160-E8B760424103@uk.om.org \
    --to=urs.rau@uk.om.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).