emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Luke Amdor <luke.amdor@gmail.com>
To: Konrad Hinsen <konrad.hinsen@fastmail.net>
Cc: Timothy Brown <orgmode@tcb.mailworks.org>,
	emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: org-mac-protocol/org-protocol-capture
Date: Thu, 2 Dec 2010 20:45:24 -0600	[thread overview]
Message-ID: <AANLkTinviH8GUYPQ6wdQc3Z181gecA9kHw5nztsmzLcT@mail.gmail.com> (raw)
In-Reply-To: <C3D89E6E-9020-420C-B848-34D30DD56CB3@fastmail.net>


[-- Attachment #1.1: Type: text/plain, Size: 3522 bytes --]

For the Mac, I've been actually using the methods described in
http://jcardente.blogspot.com/2010/09/saving-weblinks-to-org-mode-from-safari.html
with
pretty good success. If you're not shy about AppleScript and editting an XML
file, it works great.

Luke


On Tue, Nov 30, 2010 at 1:21 AM, Konrad Hinsen
<konrad.hinsen@fastmail.net>wrote:

> On 30 Nov 2010, at 03:53, Timothy Brown wrote:
>
>  I think the intended behavior i'm confused about is remember coming up
>> instead of the new capture functionality.  I assume that has to do with
>> this line here in the Applescript:
>>
>> set theProtocol to "org-protocol:/mac-remember:/y/"
>>
>> but i'm not sure how to modify this to forego the older remember
>> functionality and use the newer capture functionality.
>>
>
> That would require new code in org-mac-protocol.el. mac-remember is a new
> protocol implemented in that module, which uses the remember framework.
> Switching to capture would require defining a new protocol mac-capture and
> implement it.
>
> I have actually started doing that and my current version is already
> usable. But I am not happy yet with some of the details. If you want to try
> it, my version of org-mac-protocol.el is attached, as well as
> org-capture.scpt that calls it.
>
> Konrad.
>
>
>
>
>
>
>
> (*
> org-capture.scpt --- make a note in an org-mode file, linking to the front
> document and any selected text
>
> Copyright (C) 2009, 2010 Christopher Suckling
>
> Author: Christopher Suckling <suckling at gmail dot com>
>
> This file is Free Software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation; either version 3, or (at your option)
> any later version.
>
> It is distributed in the hope that it will be useful, but WITHOUT
> ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
> or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
> License for more details.
>
> You should have received a copy of the GNU General Public License
> along with GNU Emacs; see the file COPYING.  If not, write to the
> Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
> Boston, MA 02110-1301, USA.
>
> Vesion: 0.634
>
> Commentary
>
> Part of org-mac-protocol
>
> Installation
>
> 1) Open in AppleScript Editor
> 2) Save as File Format: Script in  ~/Library/Scripts/
>
> Please see org-mac-protocol.org for full installation and usage
> instructions
> *)
>
> set ASTID to AppleScript's text item delimiters
> set text item delimiters to {":"}
> set myPath to (path to me) as text
> set orgQSLib to (text items 1 through -2 of myPath) & "orgQSLib:" as text
> set AppleScript's text item delimiters to ASTID
>
> set getEmacsLib to (load script file ((orgQSLib as text) &
> "getEmacsClient.scpt"))
> set getItemMetaLib to (load script file ((orgQSLib as text) &
> "getItemMetadata.scpt"))
> global escapeLib
> set escapeLib to ((orgQSLib as text) & "escape.rb")
> set theProtocol to "org-protocol:/mac-capture:/w/"
>
> tell application "System Events"
>        set theApp to item 1 of (get name of processes whose frontmost is
> true)
> end tell
>
> set theScript to getEmacsLib's getEmacsClient() & " " & getItemMetaLib's
> getItemMetadata(theProtocol, theApp)
>
> do shell script theScript
> _______________________________________________
> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 4646 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      reply	other threads:[~2010-12-03  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29  5:04 org-mac-protocol/org-protocol-capture Timothy Brown
2010-11-29  8:09 ` org-mac-protocol/org-protocol-capture Konrad Hinsen
2010-11-30  2:53   ` org-mac-protocol/org-protocol-capture Timothy Brown
2010-11-30  7:21     ` org-mac-protocol/org-protocol-capture Konrad Hinsen
2010-12-03  2:45       ` Luke Amdor [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=AANLkTinviH8GUYPQ6wdQc3Z181gecA9kHw5nztsmzLcT@mail.gmail.com \
    --to=luke.amdor@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    --cc=orgmode@tcb.mailworks.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).