From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: Fwd: Re: ns-do-applescript Date: Mon, 30 May 2022 17:12:14 +0300 Message-ID: References: <871qwbd999.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="21314"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Jon Snader , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 30 16:19:42 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 1nvgFA-0005De-OL for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 16:19:42 +0200 Original-Received: from localhost ([::1]:49418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvgF9-00010h-Jy for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 10:19:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvgD3-00060G-Uc for emacs-devel@gnu.org; Mon, 30 May 2022 10:17:29 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:46149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvg8O-0005Ap-6u for emacs-devel@gnu.org; Mon, 30 May 2022 10:12:45 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 55AAC3200437; Mon, 30 May 2022 10:12:18 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 30 May 2022 10:12:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653919937; x=1654006337; bh=Fojvz0TdH/ vHisxuNfffdw2RZlOj0E6cvoNOc5HIjlU=; b=Dab50SYpEnDmjP4IyTLAAXtthH F1l6zq/b0JN0jObE/vbcbYvEWvHjvHBO0wsk18w67BpmBmfPd65Pk7ndvdsrr9AF 24WKyULmO5B3ZY49DLhsg/48Bti9VxyoFZQuRiSoqSsWnXG9r+SfSlKMgt6PRXqr 7709zdptycKgyFvgGxCL7Br7hklZwAWbxMznK3jiqWy+8NCPyFP7WuTLSo2Qx+eK ziVAm//Kf15DrAl804Tb/tmp+nsMykM2AWPoDdZSsrXQDU0KIJMNIOJ/gNevP2hd B54oJB0epic0PlHHRXV2HnR/H2eGlI3cRi4uZKv+0xVYjIxtEapntCT408oA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653919937; x=1654006337; bh=Fojvz0TdH/vHisxuNfffdw2RZlOj 0E6cvoNOc5HIjlU=; b=WeFi2y4Wiv+4pbhuBUU5v+y/Z/93DngLYwcthX10ETSU pHVYpVp5WKuUnMjJzIuPgrakKx113bRnSuRyyhfsb4iike4EYLzaDl3eq4p8fgND lvQvXiua+oi6ebp/iBa8jItojEMqsXPU8L3NlPbABVwDntpltr82pxxIhwfPg4HU q9laaZMocv+kKMA8eO3EKzRoMvotvJXVPUUfk574iyeO9waKvqV3mEMXi3k9hlT0 u6SyA9YpSyPRMTm3ztGoj7N3SwXiv0SNBK87n/gz9D8zU5gs6A5XEzu9eq521+pC T8OpQAY9YHQqXEU9YR2AEAi8ikh2YZnuzx8ijXZpNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeigdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefujghffgffkfggtgesthdtre dttdertdenucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhnsehf rghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeffhfejveeiieeiudetgfehff elieevfeeffedtkeelheeludefueeuudehveeiffenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilhdrfh hm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 May 2022 10:12:16 -0400 (EDT) In-Reply-To: <871qwbd999.fsf@yahoo.com> (Po Lu's message of "Mon, 30 May 2022 10:50:10 +0800") Mail-Followup-To: Po Lu , Jon Snader , emacs-devel@gnu.org Received-SPF: pass client-ip=64.147.123.21; envelope-from=fgunbin@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:290383 Archived-At: On 30/05/2022 10:50 +0800, Po Lu wrote: > Jon Snader writes: > >>> 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. > > So how can I do that on a free system? How do I obtain the URL of > Epiphany'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. > > We don't want to make things convenient for Mac users, when those things > are not possible on a free system. Just as Emacs doesn't provide > "OS-specific interface routines" to perform tasks on non-free operating > systems that are not possible on free ones. Though I don't object to the function's removal, I have a feeling that the comparison is unfair. ns-do-applescript provides an _API_ to call OS-specific functionality. IMO, it's what the _clients_ of that API (core Emacs features) do, that should be judged by the criteria you mention. Filipp