From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Alfred workflow for org-capture Date: Fri, 13 Sep 2013 09:45:56 +0200 Message-ID: References: <5231CF53.9060604@sift.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKO4q-0003Eh-4e for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 03:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKO4k-0001tj-GW for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 03:46:03 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:16246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKO4k-0001td-9r for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 03:45:58 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Haider Rizvi Cc: emacs-orgmode@gnu.org harizvi@gmail.com writes: > "Robert P. Goldman" writes: > >> Does anyone have a workflow for the Alfred Mac app launcher that will >> interact with org-capture? > > If Alfred can trigger an Applescript, I use the following with Quicksilver: > > Applescript: > > property eclient : "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -e " > do shell script eclient & "'(make-orgcapture-frame)'" > > elisp in init.el or ...: > > (defun make-orgcapture-frame () > "Create a new frame and run org-capture." > (interactive) > (make-frame '((name . "remember") (width . 80) (height . 16) > (top . 400) (left . 300) > (font . "-apple-Monaco-medium-normal-normal-*-13-*-*-*-m-0-iso10646-1") > )) > (select-frame-by-name "remember") > (org-capture)) This is a great suggestion! I have one comment and one question. The comment: if you have capture-templates set up, you can bypass them by calling `(org-capture nil "t")' if you want that template. The question: is there a way to: - present only the capture buffer in the new frame (right now it's split with the scratch buffer)? - delete the window at the end of capture? According to some old discussion (https://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00482.html) it is not possible, but things may have changed since then. Alan