From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alexander Adolf Newsgroups: gmane.emacs.devel Subject: Re: [Proposal] New EUDC backend for macOS address book Date: Tue, 05 May 2020 16:47:44 +0200 Message-ID: <2bf0f4ecf27da69eeedbad1d2361d53a@condition-alpha.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="56820"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Thomas Fitzsimmons Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 05 16:50:45 2020 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 1jVyuA-000Edt-CX for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 16:50:42 +0200 Original-Received: from localhost ([::1]:53922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVyu9-0004qu-DV for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 10:50:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVyrN-0001jL-Ky for emacs-devel@gnu.org; Tue, 05 May 2020 10:47:49 -0400 Original-Received: from smtprelay01.ispgateway.de ([80.67.31.39]:5643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVyrM-0006Tx-3D for emacs-devel@gnu.org; Tue, 05 May 2020 10:47:49 -0400 Original-Received: from [46.244.222.109] (helo=localhost) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVyrI-0000dm-GT; Tue, 05 May 2020 16:47:44 +0200 In-Reply-To: X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.31.39; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay01.ispgateway.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/05 10:47:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:248995 Archived-At: Hello Thomas, Apologies for the delay in getting back to you. Thomas Fitzsimmons writes: > [...] > It sounds like the AppleScript-based approach is superior and the way > forward. However, I'd still like to know more about how eudcb-mab.el > failed, so that we can discuss backward compatibility. Was the > incorrect file path the only issue preventing eudcb-mab.el from working > for you? Frankly, I hadn't researched any further after discovering the file name change. I suspected that Apple would have changed the file name for a reason, and that further incompatibilities might be lurking. > [...] > Do you have a sense for how far back the AppleScript method will work? > i.e., would it work on all systems on which eudcb-mab.el currently > works? Quoting from `man osascript`: [...] HISTORY osascript in Mac OS X 10.0 would translate `\r' characters in the output to `\n' and provided c and r modifiers for the -s option to change this. osascript now always leaves the output alone; pipe through tr(1) if necessary. Prior to Mac OS X 10.4, osascript did not allow passing arguments to the script. [...] I guess we can read this as osascript being available since macOS 10.0, i.e. the year 2001. Thus, my take would be that wherever eudcb-mab.el works, the AppleScript method works, too. > Do you think we should maintain eudcb-mab and eudcb-macos-contacts in > parallel, at least for a few releases, and recommend > eudcb-macos-contacts to existing eudcb-mab users? > [...] That seems like a good thing to do, IMHO. Cheers, --alexander