unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: Lennart Borgman <lennart.borgman.073@student.lu.se>, emacs-devel@gnu.org
Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X?
Date: Mon, 09 Jan 2006 11:21:19 +0900	[thread overview]
Message-ID: <wlzmm6gmzk.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <FF3FDEBD-DAD9-40A5-B5B1-6F0EF6F6226E@gmail.com>

>>>>> On Sun, 8 Jan 2006 21:14:32 +0000, David Reitter <david.reitter@gmail.com> said:

>> 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).

I think I didn't change any UI scripting settings on Mac OS X 10.4.3,
but the following script can execute the specified command in the
existing shell.

  tell application "Terminal" to activate
  tell application "System Events"
    tell process "Terminal"
      keystroke "date\n"
    end tell
  end tell

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

  reply	other threads:[~2006-01-09  2:21 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
2006-01-09  2:21             ` YAMAMOTO Mitsuharu [this message]
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=wlzmm6gmzk.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    /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).