emacs-devel
[Top][All Lists]
Advanced

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

Re: Executing Emacs Lisp through AppleScript on Mac OS X?


From: YAMAMOTO Mitsuharu
Subject: Re: Executing Emacs Lisp through AppleScript on Mac OS X?
Date: Mon, 09 Jan 2006 11:21:19 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Sun, 8 Jan 2006 21:14:32 +0000, David Reitter <address@hidden> 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
                                address@hidden




reply via email to

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