> Message: 18 > Date: Tue, 24 May 2022 16:11:00 -0400 > From: Stefan Monnier > To: Daniel Martín > Cc: Po Lu , emacs-devel@gnu.org > Subject: Re: ns-do-applescript > Message-ID: > Content-Type: text/plain; charset=iso-8859-1 > Daniel Martín [2022-05-24 22:00:12] wrote: > > I don't object delegating to osascript as a subprocess, but there are > > probably lots of packages and user customizations already calling > > ns-do-applescript. We should deprecate the API before removing it, and > > the deprecation message should tell people how they can call osascript > > in an equivalent way. > Can we re-implement `ns-do-applescript` as an ELisp function that runs `osascript`? > > > Stefan hi you mean something like: ;; (ns-do-applescript "tell application \"Emacs\" to activate")) (call-process "osascript" nil nil nil "-e" "tell application \"Emacs\" to activate") Isn't it easier to explain than to actually write a function? ;-) Best, /PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet