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: Thu, 30 Jul 2009 11:37:47 -0500 (CDT) Message-ID: <20090730.113747.37630964.hanche@math.ntnu.no> References: 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 1248972671 20487 80.91.229.12 (30 Jul 2009 16:51:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2009 16:51:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 30 18:51:04 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 1MWYqN-0001cp-7u for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2009 18:51:03 +0200 Original-Received: from localhost ([127.0.0.1]:35111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWYqM-0004ni-OI for ged-emacs-devel@m.gmane.org; Thu, 30 Jul 2009 12:51:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWYdh-000418-Mn for emacs-devel@gnu.org; Thu, 30 Jul 2009 12:37:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWYdd-0003yl-Ax for emacs-devel@gnu.org; Thu, 30 Jul 2009 12:37:57 -0400 Original-Received: from [199.232.76.173] (port=49597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWYdd-0003yh-0e for emacs-devel@gnu.org; Thu, 30 Jul 2009 12:37:53 -0400 Original-Received: from abel.math.ntnu.no ([129.241.15.50]:46279) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MWYdc-0008Cr-JU for emacs-devel@gnu.org; Thu, 30 Jul 2009 12:37:52 -0400 Original-Received: (qmail 26447 invoked from network); 30 Jul 2009 16:37:50 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.102) by abel.math.ntnu.no with ESMTPA; 30 Jul 2009 16:37:50 -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:113406 Archived-At: + Richard Stallman : > > One question is, do most apps on MacOS have _the same_ Applescript > > capability that has been put into Emacs? > > Having only the level of capability that has been put into Emacs is > considered a disadvantage in most applications. > > Could you name and describe the different levels of capability > that apps can have, and say which one of them corresponds to Emacs? I think every app that uses the cocoa framework, as Emacs does, can respond to some basic applescript commands, such as activate, quit, open file. This comes with the framework and is there whether we want it or not. (I am not 100% sure on this.) In addition, apps can (but Emacs does not) provide more Applescript commands that other apps can use to control it. These extensions can vary from a few simple commands to large collections of commands and data structures that let you control almost every aspect of the app. When it comes to being able to control other apps via Applescript, I don't think many apps can do it. Such scripts are generally run using the script editor, an app that lets you edit and execute scripts as well as compile them into standalone scripts. Plus there is the command line driven osascript, to which you can feed any bit of applescript and have it executed. Example: ; osascript -e 'tell application "Emacs" to open "/etc/passwd"' Now apart from Applescript and services (covered in a separate message), applications may respond to other kinds of events. One that Emacs does well is "open file"; the script above actually triggers such an event. Another one is a request to handle an URL such as mailto:nobody@example.com, which Emacs does not handle at present. (But I think it should, if someone can figure out how.) - Harald