From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: [Proposal] New EUDC backend for macOS address book Date: Tue, 28 Apr 2020 01:41:30 +0900 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="87187"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 27 18:42:49 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 1jT6qH-000Max-Mk for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Apr 2020 18:42:49 +0200 Original-Received: from localhost ([::1]:55146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT6qG-0001Cs-MN for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Apr 2020 12:42:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49982) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT6pB-0008PW-LW for emacs-devel@gnu.org; Mon, 27 Apr 2020 12:41:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT6pA-0002XZ-0p for emacs-devel@gnu.org; Mon, 27 Apr 2020 12:41:41 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:35793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jT6p9-0002UW-Ae for emacs-devel@gnu.org; Mon, 27 Apr 2020 12:41:39 -0400 Original-Received: from [10.0.1.13] (pl12634.ag0304.nttpc.ne.jp [128.53.235.90]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 7FE04100007 for ; Mon, 27 Apr 2020 16:41:34 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=217.70.178.231; envelope-from=jean.christophe.helary@traduction-libre.org; helo=relay11.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/27 12:41:36 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.178.231 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:247945 Archived-At: > On Apr 28, 2020, at 1:10, Thomas Fitzsimmons = wrote: >=20 > Hi Alexander, >=20 > Alexander Adolf writes: >=20 >> I hence set out to write a new backend for EUDC to get access to = macOS >> address book contacts via AppleScript. The result is >> `eudcb-macos-contacts.el', which is enclosed with this message, and >> which I would kindly like to propose for inclusion as part of EUDC = (and >> replacing the existing `eudcb-mab.el'). >=20 > 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? 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? The application that is called in the applescript is called "Contacts". Before July 2012, when macos 10.8 was released, it was called "Address = Book". So if the script wants to support machines with an OS older that 10.8 = there will be a need to check the OS version and change the name of the = application that is called. I don't remember and can't find on the web whether there was an Address = Book on systems before OSX, but even if there was, I don't think emacs = supports such old proprietary systems. Regarding the code itself, it looks simple enough that it would work on = systems with old versions of Address Book but that would require some = testing. One could ask people on the AppleScript User list for their support, or = some other place (MacScripters ?) As far as I can tell, the Applescript itself (I've not tested the = inclusion in the emacslisp code) works fine on the latest macos version. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune