From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X? Date: Sun, 08 Jan 2006 21:24:56 +0100 Message-ID: <43C17518.9050003@student.lu.se> References: <43A40BED.4090303@student.lu.se> <93457ff00512170541h217a7d5ay3eb55bd6a3bd466d@mail.gmail.com> <42F2D88A-A20A-45ED-8193-1C97762076E1@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136751928 9742 80.91.229.2 (8 Jan 2006 20:25:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2006 20:25:28 +0000 (UTC) Cc: YAMAMOTO Mitsuharu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 08 21:25:25 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 1Evh6M-0008Dt-GK for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2006 21:25:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Evh8G-0000Nm-0S for ged-emacs-devel@m.gmane.org; Sun, 08 Jan 2006 15:27:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Evh83-0000NX-Ib for emacs-devel@gnu.org; Sun, 08 Jan 2006 15:27:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Evh81-0000N8-Vm for emacs-devel@gnu.org; Sun, 08 Jan 2006 15:27:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Evh81-0000N5-Hq for emacs-devel@gnu.org; Sun, 08 Jan 2006 15:27:01 -0500 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvhAB-0000pj-7a for emacs-devel@gnu.org; Sun, 08 Jan 2006 15:29:15 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.069.1) id 43BC5113000C420D; Sun, 8 Jan 2006 21:24:57 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: David Reitter In-Reply-To: <42F2D88A-A20A-45ED-8193-1C97762076E1@gmail.com> 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:48851 Archived-At: David Reitter wrote: > 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. Does not emacsclient have a -eval parameter?