From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id E417DBDE6 for ; Sat, 3 Sep 2005 19:23:39 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j83HNdKO019771 for ; Sat, 3 Sep 2005 19:23:39 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA26624 for ; Sat, 3 Sep 2005 19:23:39 +0200 (MET DST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j83HNcif019768 for ; Sat, 3 Sep 2005 19:23:38 +0200 Received: by rproxy.gmail.com with SMTP id b11so798969rne for ; Sat, 03 Sep 2005 10:23:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:subject:date:to:x-mailer:from; b=ceB1MGp7Lqw6Y2VarE5X7XLzcGiRaC9bKToHZ0w9RHbBcyZDwS2HES5AxojuQ/kXeDcj9rn9jQD3Avm2ThfhVq0eNmxNNC+/ymPuNDglhA3x9AsPNAL2U3mnl5ah1hUxsAbJ9iZ/qYI0LsMFF6heg+pW7D8V4DxdvySwFK+nngQ= Received: by 10.38.151.35 with SMTP id y35mr28568rnd; Sat, 03 Sep 2005 10:23:37 -0700 (PDT) Received: from ?10.0.1.3? ( [70.251.94.204]) by mx.gmail.com with ESMTP id c3sm2717245rne.2005.09.03.10.23.37; Sat, 03 Sep 2005 10:23:37 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: References: <20050830174757.99765.qmail@web30510.mail.mud.yahoo.com> <200508302001.58080.jon@ffconsultancy.com> <3d13dcfc05083101487092acd5@mail.gmail.com> <43168841.9000302@havenrock.com> <1125580528.7192.23.camel@localhost.localdomain> <1125646841.735.57.camel@acerf.exomi.com> <1125664781.7262.51.camel@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Re: Feeding the OCaml GUI troll Date: Sat, 3 Sep 2005 12:23:36 -0500 To: Ocaml X-Mailer: Apple Mail (2.734) From: Doug Kirk X-Miltered: at nez-perce with ID 4319DC1B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4319DC1A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 syntax:01 ...:98 %22:98 %22:98 underlying:01 underlying:01 parse:02 doug:03 gui:04 gui:04 apps:04 side-effects:04 correctly:04 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 > But in fact there is some works do to the same with GUI. > AppleScript is one such thing. You can do > script that send commands to apps and so you can automate some > task. The problem is that the application > must be AppleScript aware, and that you have to know what it exports. > Actually, the application doesn't have to AppleScript (AS) aware. The only reason you augment an app with an AS dictionary is so that AS itself can correctly parse the syntax for the messages to the app at development time. Remember that AS is really an interface to an underlying technology...the Apple Event mechanism. So, if you can speak low- level Apple Events, you don't need AS at all. See for instance. Or The point being, of course, that all of the visual UI re/actions are simply side-effects of the underlying event mechanism, which allows automation. I'd think you'd want that type of mechanism forming the basis of the GUI. --doug