<div class="gmail_quote">On Tue, Feb 9, 2010 at 3:15 PM, David Reitter <span dir="ltr"><<a href="mailto:david.reitter@gmail.com">david.reitter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Brad,<br>
<div class="im"><br>
On Feb 9, 2010, at 2:53 PM, Brad Anderson wrote:<br>
<br>
> Where would one change Aquamacs around to successfully interact with Applescript requests? I’m trying:<br>
<br>
</div>Good question.  You would have to implement the appropriate (delegate) methods as, presumably, discussed in the Cocoa documentation.  The appropriate source files are nsterm.m, nsfns.m and, possibly, nsterm.h.  I'm not familiar with the AppleScript API, but I suspect you'll have to define a dictionary, ideally dynamically (at runtime).<br>

<br>
The best implementation would make all Lisp variables and perhaps commands or all functions available through AppleScript.  A simple way to do that would be to define some "eval" command, taking a string that is executed as Elisp code.    (Obviously, there's little general value in duplicating a small part of what Elisp can do using the AppleScript syntax.)<br>

<br>
Let me know if you need further info regarding how things are done in nsterm.m and friends.  (You may want to subscribe to the aquamacs-devel mailing list.)<br></blockquote><div><br>Yeah, I'm not so hopeful.  After opening nsterm.m, I realized that was the first Obj-C file I've ever opened.  Going to slink back to Erlang and hope someone feels like knocking this out.  I have no clue.<br>
<br>BA <br></div></div>