emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-mac-protocol usage example


From: Urs Rau (UK)
Subject: Re: [Orgmode] org-mac-protocol usage example
Date: Thu, 30 Dec 2010 11:17:17 +0000

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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Urs Rau





reply via email to

[Prev in Thread] Current Thread [Next in Thread]