From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: ns-do-applescript Date: Sun, 29 May 2022 17:21:07 -0400 Message-ID: References: <87bkvoo38y.fsf.ref@yahoo.com> <87bkvoo38y.fsf@yahoo.com> <871qwjn5ca.fsf@yahoo.com> <87fskwk79v.fsf@yahoo.com> <87leumebby.fsf@yahoo.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 29 23:21:54 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 1nvQMC-0002nm-NI for ged-emacs-devel@m.gmane-mx.org; Sun, 29 May 2022 23:21:52 +0200 Original-Received: from localhost ([::1]:56566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvQMB-0005AC-0a for ged-emacs-devel@m.gmane-mx.org; Sun, 29 May 2022 17:21:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvQLU-0004Pd-11 for emacs-devel@gnu.org; Sun, 29 May 2022 17:21:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvQLT-0006GV-NJ; Sun, 29 May 2022 17:21:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=GL23V6xzjbrBdTaLE21v4YIbNlx80tS4EtB0QIEY6NE=; b=XcluItppzE19 J5Xt+Hu/gyop4qRz3iI8mUxUcXkbrAyzeePsV8GOUaIcm4azl1q0YWRtWONkOfSm8mW4nSOkmHjct YB4eY31rSee2ovIs6ZNn9c4777cNTD8MHFevCLu7e+xil/GT5u1srUvgr7iP1kkkgFvquRG0y5eGZ bsP3Ivpacs2ojOFrrPCmVOkwv1Et1abCvX4xhk+nbr6IWd+X631nZFfjxWeNdAwR65X5nf38v3Ebp /+rmM+sgfCYksw5Bo2FIkK1iuDfJ0CsxMpQJNtAwMFOcDaZaoXSzJZGN8nUxqYEVaE8jT4TFqB7y3 LE9AcoMUzviZng6KDC5HaQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nvQLT-00022E-B8; Sun, 29 May 2022 17:21:07 -0400 In-Reply-To: <87leumebby.fsf@yahoo.com> (message from Po Lu on Sat, 28 May 2022 08:43:13 +0800) 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:290362 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Basically, what are the differences that make it better to use > > osascript than applescript? > I think that binary _is_ Apple's proprietary AppleScript interpreter, 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. > 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. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)