From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Adolf Newsgroups: gmane.emacs.devel Subject: Re: ns-do-applescript Date: Wed, 25 May 2022 14:09:10 +0200 Message-ID: References: <87bkvoo38y.fsf.ref@yahoo.com> <87bkvoo38y.fsf@yahoo.com> <87czg2l9jj.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="18682"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Filipp Gunbin , emacs-devel@gnu.org To: Po Lu , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 25 14:23:00 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 1ntq2W-0004hP-Hl for ged-emacs-devel@m.gmane-mx.org; Wed, 25 May 2022 14:23:00 +0200 Original-Received: from localhost ([::1]:48472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntq2V-0002CQ-5M for ged-emacs-devel@m.gmane-mx.org; Wed, 25 May 2022 08:22:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntppN-0005Rc-AF for emacs-devel@gnu.org; Wed, 25 May 2022 08:09:25 -0400 Original-Received: from smtprelay01.ispgateway.de ([80.67.18.13]:17026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntppL-0002DX-7J; Wed, 25 May 2022 08:09:24 -0400 Original-Received: from [46.244.211.79] (helo=condition-alpha.com) by smtprelay01.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ntppE-0005Mc-Ql; Wed, 25 May 2022 14:09:16 +0200 In-Reply-To: <87czg2l9jj.fsf@yahoo.com> X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.18.13; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay01.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:290244 Archived-At: Hello, this is the author of eudcb-macos-contacts chiming in. I would not have any objections to a well managed deprecation, and later removal of the ns-do-applescript elisp API. The semantics of that API, and the command-line replacement osascript are very similar: provide the script in a string, feed that to the API or process, and then handle whatever that returns. I do hence think making the change should be a straightforward exercise for any package author. One aspect that has not been touched on in this thread is performance. Starting an external process will typically be more expensive than calling a C API, and thus there could be a noticeable performance penalty for small scripts which are called often. But that's not the case for eudcb-macos-contacts. Hoping to have helped, --alexander