From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Mac OS, emacs->org/remember Date: Tue, 22 Jul 2008 17:44:31 -0700 Message-ID: <7AAFF166-7A8B-41EB-A53A-B47676393092@uva.nl> 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 1KLST8-0006CW-3k for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:44:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLST6-0006CA-Mz for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:44:37 -0400 Received: from [199.232.76.173] (port=56062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLST6-0006C7-GM for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:44:36 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:15594) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLST5-0001L1-Vk for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 20:44:36 -0400 In-Reply-To: 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: John Wiegley Cc: Madhu Rao , emacs-orgmode Org-Mode Great, thanks you very much. - Carsten On Jul 22, 2008, at 5:12 PM, John Wiegley wrote: > 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