From: David Reitter <david.reitter@gmail.com>
Cc: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>, emacs-devel@gnu.org
Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X?
Date: Sun, 8 Jan 2006 21:14:32 +0000 [thread overview]
Message-ID: <FF3FDEBD-DAD9-40A5-B5B1-6F0EF6F6226E@gmail.com> (raw)
In-Reply-To: <43C17518.9050003@student.lu.se>
On 8 Jan 2006, at 20:24, Lennart Borgman wrote:
>> Because the system's "open" command cannot pass arbitrary
>> parameters either, I don't see a way to get (a running) Emacs to
>> find a file (as opposed to opening an existing one) from external.
>
> Does not emacsclient have a -eval parameter?
Yes, but you need to manually M-x server-start beforehand.
> Given that emacs isn't setuid anything, I'm having trouble imagining a
> scenario on a Mac where your concern is actually a concern. Can you
> provide an example?
I run Emacs via sudo every now and then to edit system files. There's
your example.
Maybe I ought to use tramp mode instead.
Executing AppleScripts is restricted to the console user and root -
what about sending Apple events?
> Keep in mine you can also send apple events to the terminal :)
... but Terminal will not execute those in the currently open shell,
but open a new one.
With UI scripting you can do pretty much all nasty things, but UI
scripting is not on by default (probably for that reason).
next prev parent reply other threads:[~2006-01-08 21:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-17 11:11 Executing Emacs Lisp through AppleScript on Mac OS X? Presto W
2005-12-17 13:00 ` Lennart Borgman
2005-12-17 13:41 ` Presto W
2005-12-18 3:54 ` YAMAMOTO Mitsuharu
2006-01-08 19:46 ` David Reitter
2006-01-08 20:24 ` Lennart Borgman
2006-01-08 21:14 ` David Reitter [this message]
2006-01-09 2:21 ` YAMAMOTO Mitsuharu
2006-01-08 20:54 ` Michael Price
2005-12-17 13:28 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FF3FDEBD-DAD9-40A5-B5B1-6F0EF6F6226E@gmail.com \
--to=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).