unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
Cc: Presto W <prestowk@gmail.com>, emacs-devel@gnu.org
Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X?
Date: Sun, 8 Jan 2006 19:46:04 +0000	[thread overview]
Message-ID: <42F2D88A-A20A-45ED-8193-1C97762076E1@gmail.com> (raw)
In-Reply-To: <wlpsnvt5zt.wl%mituharu@math.s.chiba-u.ac.jp>

On 18 Dec 2005, at 03:54, YAMAMOTO Mitsuharu wrote:

> (defun mac-ae-do-lisp (event)
>   (interactive "e")
>   (eval (car (read-from-string (mac-ae-text (mac-event-ae event))))))


Something like that is definitely an interesting functionality, but I  
wouldn't want to see it outside of a local installation, i.e. in  
Emacs, simply for security reasons. With such an event, any  
application can practically attain all rights that the Emacs process  
has and execute pretty much anything.

Some support for common functions would be nice, though.
For example, I stumbled over "Open Document"'s inability to find new  
files, i.e. only existing files can be opened.

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.

  reply	other threads:[~2006-01-08 19:46 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 [this message]
2006-01-08 20:24         ` Lennart Borgman
2006-01-08 21:14           ` David Reitter
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=42F2D88A-A20A-45ED-8193-1C97762076E1@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=prestowk@gmail.com \
    /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).