From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: Changes 2009-07-15/16 in branch? Date: Tue, 28 Jul 2009 13:25:11 -0500 (CDT) Message-ID: <20090728.132511.262626447.hanche@math.ntnu.no> References: <1656D853-4154-4AAA-B6FE-8ADADA8647EF@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248805533 10913 80.91.229.12 (28 Jul 2009 18:25:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2009 18:25:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 20:25:27 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVrMb-00020X-Tn for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2009 20:25:26 +0200 Original-Received: from localhost ([127.0.0.1]:34949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVrMb-0003Mc-Bl for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2009 14:25:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVrMW-0003Ke-HS for emacs-devel@gnu.org; Tue, 28 Jul 2009 14:25:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVrMV-0003JI-GN for emacs-devel@gnu.org; Tue, 28 Jul 2009 14:25:19 -0400 Original-Received: from [199.232.76.173] (port=48544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVrMU-0003Iu-Cp for emacs-devel@gnu.org; Tue, 28 Jul 2009 14:25:18 -0400 Original-Received: from abel.math.ntnu.no ([129.241.15.50]:47725) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MVrMT-0001Yv-Pp for emacs-devel@gnu.org; Tue, 28 Jul 2009 14:25:18 -0400 Original-Received: (qmail 24983 invoked from network); 28 Jul 2009 18:25:13 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.102) by abel.math.ntnu.no with ESMTPA; 28 Jul 2009 18:25:13 -0000 In-Reply-To: X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.2.51 on Emacs 23.0.94 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:113298 Archived-At: + Richard Stallman : > What is Applescript? What does it do? It provides a way for programs to control applications without the need for GUI interaction. (IMO, an absolute necessity in a GUI-dominated world.) > Can you show me an example of what people do with it? Here is a banal example: (ns-do-applescript "tell application \"TextEdit\" to open \"/Users/hanche/Desktop/Info.rtf\"") This opens an existing RTF file in TextEdit and returns t if successful. More specialized control is possible if the application in question provides a dictionary of applescript commands pertaining to that program. I am not sure how this functionality can be replaced by DBUS, unless someone comes up with a program that will accept applescript requests via DBUS and run them. I can't comment on the feasibility of writing such a program. > How does it relate to Emacs? Does it mean people can extend Emacs > with Applescript programs? Or can they only run Emacs from it, like > from a shell script? As far as I can tell, emacs does not provide an applescript dictionary, so only rudimentary control is available. For instance, you can run osascript -e 'tell application "emacs" to open "/etc/passwd"' from the command line and it does what you might expect. But extending emacs with applescript? I don't think so. Does this answer your question? - Harald