From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jon Snader Newsgroups: gmane.emacs.devel Subject: Fwd: Re: ns-do-applescript Date: Sun, 29 May 2022 15:35:47 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37873"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 30 04:22:17 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 1nvV2v-0009hU-Br for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 04:22:17 +0200 Original-Received: from localhost ([::1]:56694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvV2t-0003iu-TS for ged-emacs-devel@m.gmane-mx.org; Sun, 29 May 2022 22:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvOhu-0004t8-T6 for emacs-devel@gnu.org; Sun, 29 May 2022 15:36:10 -0400 Original-Received: from gateway7.unifiedlayer.com ([74.220.216.6]:59076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvOhs-0001cp-DH for emacs-devel@gnu.org; Sun, 29 May 2022 15:36:09 -0400 Original-Received: from cm4.websitewelcome.com (unknown [108.167.139.16]) by gateway7.unifiedlayer.com (Postfix) with ESMTP id 1651A200AA0F7 for ; Sun, 29 May 2022 14:35:55 -0500 (CDT) Original-Received: from shared120.accountservergroup.com ([162.215.249.103]) by cmsmtp with ESMTP id vOhencoTlEuUwvOhenENEL; Sun, 29 May 2022 14:35:55 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=irreal.org; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: References:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AYNPkg3cvHluXk8A2TSYV5YExEDUV+DuNGsrP0JfaZE=; b=W/xnQbSMrkYmKr5NXysSB4UkKe u8bvIWMAyRY8hMUv/3gfqnGWxBro7xG9E8dhqm/7ivzco0X7/8JZxy0vFOaERcaM7YXxs5MBdxBOH +WCDIKA6y+5QJO5Onf+osZRim1doDCiuVKxy7M8hh37KRIcLs9cNbP6ujSosD8YPVR7g62SiXvoHq LqC+9D5xub0ezwwYIFwPDinldVYNEB6tsSoGVB97MPtQ8rrXGeuIHtH99kkllYmivkm7c/ycF0yjV LSFrkiuc4Kw7a0PgCxRJ26+6K6N1eWKTJM50FHY2Vh3Kar1ydWHooMkEJDEdE22g6OORmnSMBOcfL wEa+AtLQ==; Original-Received: from [35.141.151.138] (port=55178 helo=Manfred.local.mac.com) by shared120.accountservergroup.com with esmtpa (Exim 4.93) (envelope-from ) id 1nvOhe-000r8D-Ct for emacs-devel@gnu.org; Sun, 29 May 2022 14:35:54 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shared120.accountservergroup.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - irreal.org X-BWhitelist: no X-Source-IP: 35.141.151.138 X-Source-L: No X-Exim-ID: 1nvOhe-000r8D-Ct X-Source-Sender: (Manfred.local.mac.com) [35.141.151.138]:55178 X-Source-Auth: jcs@irreal.org X-Email-Count: 1 X-Source-Cap: YzY3ODU3O2M2Nzg1NztzaGFyZWQxMjAuYWNjb3VudHNlcnZlcmdyb3VwLmNvbQ== X-Local-Domain: yes Received-SPF: pass client-ip=74.220.216.6; envelope-from=jcs@irreal.org; helo=gateway7.unifiedlayer.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 29 May 2022 22:21:16 -0400 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:290368 Archived-At: Oops. Sorry. I forgot to copy the list. Jon Snader writes: >> I think that binary _is_ Apple's proprietary AppleScript >> interpreter, >> 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. > > Why do you think ns-do-applescript and osascript are just about > getting contact data? Applescript is a terrible language but it > can > interact with macOS to do just about anything you can do from > the > keyboard. As I said in my original post, I use it to get the URL > of > Safari's current page without having to leave Emacs. > > The ns-do-applescript call is (or could be considered) simply a > call > to an OS specific interface routine. It's useful for many things > besides getting contacts and its presence in *in the macOS Emacs > build* hurts no one, whereas its removal is sure to cause lots > of > inconvenience for Mac users and those writing packages for the > platform.