From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: ns-do-applescript Date: Mon, 30 May 2022 07:56:38 +0800 Message-ID: <87ee0bdhah.fsf@yahoo.com> References: <87bkvoo38y.fsf.ref@yahoo.com> <87bkvoo38y.fsf@yahoo.com> <871qwjn5ca.fsf@yahoo.com> <87fskwk79v.fsf@yahoo.com> <87leumebby.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31217"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 30 01:57:33 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvSmr-0007vo-1T for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 01:57:33 +0200 Original-Received: from localhost ([::1]:35302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvSmp-00065D-Lb for ged-emacs-devel@m.gmane-mx.org; Sun, 29 May 2022 19:57:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvSmB-0005PT-Kg for emacs-devel@gnu.org; Sun, 29 May 2022 19:56:51 -0400 Original-Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]:34270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvSm8-0001d1-5x for emacs-devel@gnu.org; Sun, 29 May 2022 19:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653868606; bh=UYei8Hk93T+tZuAHhzsUIFXeRI6q6lNOW30OBq63BGA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=K5YBAyoLRALVdX3nW1VrC1/KW39v3dYCCTitPoI0ArA+WO3vAEC7xQtqvbkrAw/KJ3vadcBif/jH8kmcjTkSnZe323zTkHw6svIvEZe8Y7sMuIl6x/xYJq2ClmF4p2a9cZnf5DxgO+zmwWkOoPMB7rtnglKWxBX5Gjf0kT9l4Z2qdsNYxDfyIvjKRjGMCDqWTXlgDNzFxycjGhEEW/EnZBxF6te1pIiEM51uD8GN+j4/sHG53AT7FErHocOM5bOcYjpPJJ1i/DmO0dSg8r6V9fYO/oPNqweLPf/drova38GeE5y+WJkvWgv8wbQf6Bu7Qe9SykSm1mt7mkBbKTiQxg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653868606; bh=Zuz4nfK4VWFQqbFFXtMzZXWBgPGFyVHEeYcIiUBQSuj=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ofjGkVL728TMNqaYxOcHySEyZpFDWZfHg85BnUTkrYwjjUzFj5BRCNzqHJ1gYBJuTrnDilIORNFhF2vHk+32L6jCNngaQEwpAjAhkc7+DgmR5uLVorMBfPJMwFBgR745CguAtLkPTYpc4ssjLjLNCKn0bYzYLb6+CqjjGaKYWN/AhOS4R4SWOha1bhgo5aPuE5E53X+zj3yrVw5DJtoPcGHG+LckwuFW7m7277yNeL8aHDPV6XfXoM69Pgsgkqb4aMNZQe7fFTrl6ktGmfbwb/ZFL6dhqucFlCGvW6IYirDSU1FCzfpw0SpBrl+y8B1R2YEFlUFFQIy99tHI/yuraA== X-YMail-OSG: GxOMILQVM1ksLe0Sr6y6X3N1.rCj3DrWiAzWno9L97xPU9vB_QBgAuziKy1hXH2 vDiG.ft_cfy0YQkWJ5_9nJzsCPzbs1BcFCnnMx9gPD3k03g_dw5GXETOjTeB0InaFumfEHunt1fT _QApKwiov65NOvrAFpgvT1edCtp5DZUZWCyba17WboHmUrDAg3Rgk6nw3pJjBA70KXRfcj96rEQx QwG9QLzwrPijn40hdYOhI44FNxcFyRQLwXVU6gGwJUfybXq._x0x.SgiuWWrzGYnmD4BkIp3FOa7 0lID_wNTPQdphOIvQhHimtQR3JpRTSyr_preSs4i2EVRWKK1AzjdRCGXj4pwW7e_Nf32bHWAly6x GRN_bManj7SKzcV4DoAoGMqdbRc47SpDUDc.jYO9fCqKiuMkDcNCzEySoT3x.X1CqlUhsY.ZbyC2 yazHyyRkgA0LInbBXMQUIGZ4cix93ijj5ommN9CD5cfSrceZ3RPBCw9m9VoaqJBZCsSRYxGqXWrU 2fWkxq2Xgo2vtnDgSICN7C10XA5jgpVTfnGjvNmVpHLcOvG.QSxr8qMBFXjlYZLwVaNBqjORx4A1 LwiUILEreho.XDEK37_FVKiqUYEedIr5boV49_R1r62_Z4cCznUUpr7o4rtjdqEnhN08LPSDekfA 1eAZzDx1pOMTUsp65Yn73SSce2WjgewC4soLxXRXnTPTJIz0wUSIdrZaAOPJ5jjFWJolb0yfFU4W pFYG3GFmpsPQj_HX6Ipfhm432LhYPqG0nbgy9DCp3hKqoYSElXMnZQs__64l3AKq0.yrrVc6tTwI 0UR3kOc7a92jnDuK3fOGLEbvedHHYlpZKzyveSJkYk X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sun, 29 May 2022 23:56:46 +0000 Original-Received: by hermes--canary-production-sg3-5f7658c994-rpd7c (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5616d61f838dc13a86168957b3f7807b; Sun, 29 May 2022 23:56:42 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Sun, 29 May 2022 17:21:07 -0400") X-Mailer: WebService/1.1.20225 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.147; envelope-from=luangruo@yahoo.com; helo=sonic314-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290367 Archived-At: Richard Stallman writes: > If that is so, what is the significant difference between invoking > osascript and invoking applescript? Those of us who don't use MacOS > know nothing about this. osascript isn't linked into Emacs. > > but using it in a subprocess to retrieve only contacts data (which is > > already possible on free systems) must be more acceptable than Emacs > > including a C primitive to do the same thing. > > Not necessarily -- it depends on facts that haven't been stated here. > Maybe a C primitive is better, but that depends on what exactly > the C primitive can do. > > Since retrieving contact data in Emacs is supported on free systems, > adding code to do the same job on MacOS is ok in principle. An > implementation which implements only that particular feature poses no > special problem. Implementing something more general than that might > pose a problem. The C primitive allows evaluating arbitrary AppleScript code, not just extracting contacts data.