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: bug #18283 / change "Enable applescript in NextStep" Date: Wed, 25 Nov 2015 07:02:45 -0500 Message-ID: <69D2E076-BF98-442F-9CC8-EE9F94AA1262@gmail.com> References: <7BDEFBAF-EB72-4B56-B807-AC93143340E3@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448452991 13536 80.91.229.3 (25 Nov 2015 12:03:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 12:03:11 +0000 (UTC) Cc: Keith David Bershatsky , emacs-devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 25 13:03:05 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1Ymv-0005FW-5f for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 13:03:05 +0100 Original-Received: from localhost ([::1]:44664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Ymw-0008Bf-Pp for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 07:03:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Ymn-0008BG-Vx for emacs-devel@gnu.org; Wed, 25 Nov 2015 07:03:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1Yme-0002QZ-KW for emacs-devel@gnu.org; Wed, 25 Nov 2015 07:02:57 -0500 Original-Received: from mail-qg0-x22a.google.com ([2607:f8b0:400d:c04::22a]:35012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Yme-0002QT-GC for emacs-devel@gnu.org; Wed, 25 Nov 2015 07:02:48 -0500 Original-Received: by qgec40 with SMTP id c40so30233602qge.2 for ; Wed, 25 Nov 2015 04:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NFx0SZOZHFcldtyxezDl9X1+FML7gDVMFte4zvgXogo=; b=zGAExItyMTinn/Zn0fzT97HnsqOt9DR6Upz8nBf+vPAaCh/CQhaY6Q4koHdzmVVzan 4XaN2pnXAx0R/VN+LK1mIatACr169Mvw8rsZT2zdu70b9/vtIl4X2WhVY1bPPhcoUewQ JRzN1hNqlkFOUKbsl5XZ7e+0ccvl9zYse8S+cQHxkol3dqiHfGLgUKs9lfLCUT5vRmUj Uhnio4FVSPmg/e6NteCBGkVKhzxH6XukoCt1mw5d9JBW7nNTytrDk9BXoNpZ+Rbc+Qmj ILaTeDTg/h9StUL4wekE5HFIvqXItQa/nybkSxdGvv01P58C3OMYZpFTO21ya37r+zTF QR4g== X-Received: by 10.140.202.132 with SMTP id x126mr40485641qha.1.1448452967806; Wed, 25 Nov 2015 04:02:47 -0800 (PST) Original-Received: from [10.0.1.23] (c-71-58-212-112.hsd1.pa.comcast.net. [71.58.212.112]) by smtp.gmail.com with ESMTPSA id j89sm5307407qgj.35.2015.11.25.04.02.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 04:02:46 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3094) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195222 Archived-At: Anders,=20 Thank you. That sounds like a good change then, but I needed your = explanation to understand. - David > On Nov 25, 2015, at 12:44 AM, Anders Lindgren = wrote: >=20 > Hi, >=20 > This change allows applescripts like the following to work: >=20 > tell application "Emacs" > set the bounds of the first window to {100, 100, 500, 500} > end tell >=20 > Without the change, the following error message is issued: >=20 > test.oas:23:89: execution error: Emacs got an error: Can=E2=80=99t = set bounds of window 1 to {100, 100, 500, 500}. (-10006) >=20 > However, after the change, Emacs repositions and resizes its frame = nicely. >=20 >=20 > So, the reporter of bug #18283 literally requested this change, but I = think that may have just been a somewhat silly way to say: =E2=80=9CCan = you please support AppleScript?=E2=80=9D >=20 > But perhaps I=E2=80=99m misunderstanding all of this and there=E2=80=99s= a grand master plan. >=20 > The original poster asked for this change in order to write automatic = tests for the NextStep user interface. Concretely, it was used to verify = that the recent problems with tool-bar-mode setting the wrong frame size = was solved. I am absolutely sure that he did not implicitly expected a = full AppleScript interface to be implemented. >=20 > -- Anders Lindgren >=20