emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Wiegley <johnw@newartisans.com>
To: Carsten Dominik <dominik@uva.nl>
Cc: Madhu Rao <bgm-rao@ieee.org>,
	emacs-orgmode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: Mac OS, emacs->org/remember
Date: Tue, 22 Jul 2008 20:12:31 -0400	[thread overview]
Message-ID: <C8411EA8-B35B-4901-BCDF-EE0BA73C98F5@newartisans.com> (raw)
In-Reply-To: <5108075A-92B5-40AA-BA28-CD3FA302F91B@uva.nl>

On Jul 22, 2008, at 7:40 PM, Carsten Dominik wrote:

> I am not sure how to do this, but I am sure it can be done
> with apple script.  John, do you have something for calling
> raising Carbon Emacs and running remember with a Mac hotkey?

I used QuicKeys to change focus to Emacs and then invoke the org- 
remember key binding.  It can also be done with Applescript, using GUI  
Scripting.  The script would look something along the lines of:

   tell application "Emacs" to activate

   tell application "System Events"
	tell process "Emacs"
		tell front window
			keystroke "c" using {control down}
			keystroke "r" using {control down}
		end tell
	end tell
   end tell

This switches to Emacs and invokes C-c C-r.  Change to suit your  
taste.  You'll need to run AppleScript Utility.app, and check "Enable  
GUI Scripting" for this to work.

You can bind this Applescript to global hotkey using the free  
application "FastScripts Lite".

Good luck!

John

  reply	other threads:[~2008-07-23  0:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-20 20:06 Mac OS, emacs->org/remember Madhu Rao
2008-07-22 23:40 ` Carsten Dominik
2008-07-23  0:12   ` John Wiegley [this message]
2008-07-23  0:44     ` Carsten Dominik
2008-07-23  5:09       ` Madhu Rao
2008-08-04 12:17   ` peter.frings
  -- strict thread matches above, loose matches on Subject: below --
2008-07-18 19:19 bgm-rao

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=C8411EA8-B35B-4901-BCDF-EE0BA73C98F5@newartisans.com \
    --to=johnw@newartisans.com \
    --cc=bgm-rao@ieee.org \
    --cc=dominik@uva.nl \
    --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).