From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X? Date: Sun, 8 Jan 2006 19:46:04 +0000 Message-ID: <42F2D88A-A20A-45ED-8193-1C97762076E1@gmail.com> References: <43A40BED.4090303@student.lu.se> <93457ff00512170541h217a7d5ay3eb55bd6a3bd466d@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136749597 1635 80.91.229.2 (8 Jan 2006 19:46:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2006 19:46:37 +0000 (UTC) Cc: Presto W , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 08 20:46:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvgUl-00012j-Ev for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2006 20:46:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvgWe-0002QL-TX for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2006 14:48:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvgWQ-0002Mk-RY for emacs-devel@gnu.org; Sun, 08 Jan 2006 14:48:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EvgWP-0002Ly-AE for emacs-devel@gnu.org; Sun, 08 Jan 2006 14:48:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvgWO-0002Lr-Ji for emacs-devel@gnu.org; Sun, 08 Jan 2006 14:48:09 -0500 Original-Received: from [64.233.162.207] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvgYY-00068b-0P for emacs-devel@gnu.org; Sun, 08 Jan 2006 14:50:22 -0500 Original-Received: by zproxy.gmail.com with SMTP id z31so3542673nzd for ; Sun, 08 Jan 2006 11:46:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=qGH8SwIPh+ykCgl/NDZOnf42OYBZDg3POFL61yefcNyvUegTz4x7+EeVul8WC5oLn1hE79NUBpYJsJaIUX/wY8eyuNiZLrXWF0dYLfC3QbUx/uOLCk9CrTsufljD90HW4rC6XieCnv/FhnGPt9HccPlxL7U0I94m8bRQgma95nM= Original-Received: by 10.65.61.19 with SMTP id o19mr2223214qbk; Sun, 08 Jan 2006 11:46:09 -0800 (PST) Original-Received: from ?10.0.0.100? ( [82.41.74.89]) by mx.gmail.com with ESMTP id e15sm3495531qbe.2006.01.08.11.46.07; Sun, 08 Jan 2006 11:46:09 -0800 (PST) In-Reply-To: Original-To: YAMAMOTO Mitsuharu X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48850 Archived-At: On 18 Dec 2005, at 03:54, YAMAMOTO Mitsuharu wrote: > (defun mac-ae-do-lisp (event) > (interactive "e") > (eval (car (read-from-string (mac-ae-text (mac-event-ae event)))))) Something like that is definitely an interesting functionality, but I wouldn't want to see it outside of a local installation, i.e. in Emacs, simply for security reasons. With such an event, any application can practically attain all rights that the Emacs process has and execute pretty much anything. Some support for common functions would be nice, though. For example, I stumbled over "Open Document"'s inability to find new files, i.e. only existing files can be opened. Because the system's "open" command cannot pass arbitrary parameters either, I don't see a way to get (a running) Emacs to find a file (as opposed to opening an existing one) from external.