From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiegley Subject: Re: Mac OS, emacs->org/remember Date: Tue, 22 Jul 2008 20:12:31 -0400 Message-ID: References: <5108075A-92B5-40AA-BA28-CD3FA302F91B@uva.nl> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLRyD-0005CU-EI for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:12:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLRyB-0005Bz-Qm for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:12:41 -0400 Received: from [199.232.76.173] (port=46487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLRyB-0005Bv-JV for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:12:39 -0400 Received: from johnwiegley.com ([208.70.150.153]:60713 helo=mail.johnwiegley.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLRyB-0004bp-BN for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:12:39 -0400 In-Reply-To: <5108075A-92B5-40AA-BA28-CD3FA302F91B@uva.nl> 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: Carsten Dominik Cc: Madhu Rao , emacs-orgmode Org-Mode 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