emacs-devel
[Top][All Lists]
Advanced

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

Re: ns-do-applescript


From: Howard Melman
Subject: Re: ns-do-applescript
Date: Thu, 26 May 2022 10:03:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)

Richard Stallman <rms@gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > I do use it for simple interaction with the Finder and Safari such as:
>
>   >     (do-applescript "tell application \"Safari\" to get the name of 
> window 1")
>   >     (do-applescript "tell application \"Safari\" to get the URL of 
> document 1")
>
> Is it possible to do this with call-process
> or by running a shell command?

I think so, though I have to figure out the right
incantation to get stdout returned as a string.  I might be
nice if call-process' DESTINATION arg had an option for this.

-- 

Howard




reply via email to

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