From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kJvpK/zRVWEydwAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 17:04:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gCulJ/zRVWGBSwAA1q6Kng (envelope-from ) for ; Thu, 30 Sep 2021 15:04:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 474622E487 for ; Thu, 30 Sep 2021 17:04:28 +0200 (CEST) Received: from localhost ([::1]:38286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVxbm-0006uL-Li for larch@yhetil.org; Thu, 30 Sep 2021 11:04:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVxZs-0006DC-79 for emacs-orgmode@gnu.org; Thu, 30 Sep 2021 11:02:29 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:46716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVxZn-0004TG-TX; Thu, 30 Sep 2021 11:02:27 -0400 Received: by mail-lf1-x12b.google.com with SMTP id z24so26580326lfu.13; Thu, 30 Sep 2021 08:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=q8YZfkSumPmc53bNrm7uQ8Mj6yPbySwYrqSpyYTq1oc=; b=CARVcd3Ui7LTOzGPl38aSCwYFkMeDM8Ub+zw47oCkSzyGPilJNWvp/k5AC0FQLuISv uWO6d0EXkktcjaF/LV2UIEM9g548hVuJk7TYEaMPdaKjD4Cv4Rq1/s1DxFd0kQmJ8643 8cPDSmf48tFlXpEwCnMqMXiQU0quu4V6Vikaa8F7IrlJEpXcL/j7xqKq8ZRAnGTE4PqQ 0zf/PXnW8PTpVdyNbDImRLdghMRUf4nTHMlV3UCyJye9KYpC2JEwVzWkgWtxxeZommaq C/KTZLK5lLo7p4YKP1mGx/wdd3m8LFT3Fwm+GVu4SqYuK2U6XAS+FIC64mlbYv72qVq6 7M5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=q8YZfkSumPmc53bNrm7uQ8Mj6yPbySwYrqSpyYTq1oc=; b=NOnLBMD74THRqWJ97sFe+SYZ1MJlkOdi/DGRFVHypgo3aI4jLHmyocCm7pQL7FPpWk 2doUtZ80rR4PWjWcmC3KAB5Z26YB2namiem1aaaKImQXc5Z5bhRL8dZi/Nc0IpyTUc3C 6hjAoX514zPm4BiZ4ibK8nzErLsNxOZXFDXhmWaKqvbGYNVqUeUOM4cUoHUn/ZbybwrN Zl583gOdMWEQ8WQ8qXBhdi4ErHkvo4Tl1kKHruNAcFBObfiYJvkLOE3D469M8grYf73+ VCxhE0FWaBWGelf5ig9vshnG+yeyanubd9Dvx4yG4yrqeRQZeamGZ+qDd3BvXEuZGznP 4GJA== X-Gm-Message-State: AOAM533NNpkt+y7EzWG7tpBMYPUVfeRWnfrGVxzzvqdwvuML2zPSkDJ8 HYnYnnoyeIaRmvQRBaxmqZE+jcN3apU= X-Google-Smtp-Source: ABdhPJwSgMmiTFkINitHXJQ5CfSXRQDINPVP29jf4fe7NAoFAfYhXVIa8u//wPykxXDr+gDXeoAHXQ== X-Received: by 2002:a2e:a54b:: with SMTP id e11mr6559143ljn.171.1633014113109; Thu, 30 Sep 2021 08:01:53 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id r2sm398307lfm.78.2021.09.30.08.01.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Sep 2021 08:01:52 -0700 (PDT) Subject: Re: [new patch] Re: [PATCH] make org-notify support for macOS desktop notification To: Bastien , stardiviner References: <5B57CD8B-AA91-4C63-A449-A07364083AEE@gmail.com> <87im1ol2lb.fsf@gmail.com> <7318E1D0-613A-4301-8097-779D3FEF1105@gmail.com> <87czovbtw4.fsf@gnu.org> From: Max Nikulin Message-ID: <58387807-b3b8-0d88-aa21-a08c85978351@gmail.com> Date: Thu, 30 Sep 2021 22:01:50 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87czovbtw4.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-1.127, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633014268; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=q8YZfkSumPmc53bNrm7uQ8Mj6yPbySwYrqSpyYTq1oc=; b=FOGehqpAKsGnrFjQoELKlkSxF187T0xSCRnH0L4o1ikLM6WmPALvyz21x7T2NaUgxjyiNP 4tEdY7Ah5k2+WyKu4oaBV21hDVgeCwMyYTJWjT7erIZieXRCPiSgZ3ptC+DMncbuGOlSjU YoIo5+6ei8Q40FJ4fDbQ1lvCD+Vcl7Fa7CLb03igLIrIGnLbVLjduB8Feq8f3C8QZQRxZF n++icGE+xkHTqsRG5aQGsjNEyV03+a8Tl+U6nuPZytH9RnO/dEJMYh3rDYx7CPk9a+9Dvv ichVHWdmL1lImAAofnA/hqFO2mbN0iiO1eNxA4mhpJ61DYUpgFhEQP69MpubqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633014268; a=rsa-sha256; cv=none; b=CKnYI8tZE3vYIAWPKFyr8I/FO2r9ZrNPIgFb6aqEmL80ka+gVO1vlHZ05vhUkuShBFLPT+ DPEeWbSakj6OEDXTfQyW8vgvkov/zo8nSN/zSFwFFQomJktj54FuxxR9qEijti7xKCRCrF lgJnHQOVt16Z2V90nyfzkT1gFifG67Upp7LUwmGuxTKRLFB5wh0ApYiJsLMktdx2GFjWgb NCh0ddWZz656g/gu3DxrzkwzIaNUGXjB6AjcygNjhq18pqlL5mqVeu5gaRNDgOTF9oCoQ0 sBlTTh3rC50JGVPgsL+gHcC8T6oOqBP+tC0/egSj965qocppsJT5bGZ/99dHdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CARVcd3U; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CARVcd3U; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 474622E487 X-Spam-Score: -1.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7DqnQ9wmnG0k On 26/09/2021 15:52, Bastien wrote: > stardiviner writes: > >> Here is the new patch which invokes notifications though Emacs >> built-in API `ns-do-applescript`. > > Applied in the main branch, thanks. Notice that applied patch has a minor issue: backslashes are not escaped before argument is passed to osa-script interpreter, so e.g. trailing backslash leads to syntax error (https://list.orgmode.org/sc1hdn$12dt$1@ciao.gmane.io). Disclaimer: I am not a macOS user. From discussion in this thread I had impression that patched for macOS versions work much better and they do not require this patch. Introduced clause has higher priority than notify-send however the latter works even on mac at least for some users.