emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: ns-do-applescript


From: Pedro Andres Aranda Gutierrez
Subject: Re: Re: ns-do-applescript
Date: Thu, 26 May 2022 13:01:59 +0200



> Message: 18
> Date: Tue, 24 May 2022 16:11:00 -0400
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> To: Daniel Martín <mardani29@yahoo.es>
> Cc: Po Lu <luangruo@yahoo.com>,  emacs-devel@gnu.org
> Subject: Re: ns-do-applescript
> Message-ID: <jwv7d6an136.fsf-monnier+emacs@gnu.org>
> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]