Re: [Mac-emacs-users] Emacs 21.1 AppleScript and Command Key for OS X
Brought to you by:
akochoi
From: Immanuel L. <imm...@en...> - 2001-12-28 09:13:53
|
I added two lines to the function do_applescript in src/mac.c >>> static long do_applescript (char *script, char **result) { AEDesc script_desc, result_desc, error_desc; OSErr error; OSAError osaerror; long length; *result = 0; -> if (!as_scripting_component){ -> initialize_applescript(); -> } >>> This works fine but it does not call the terminate applescript if emacs terminates. I have also noticed that if you try to "do applescript" that is not syntactically correct, emacs may hang or crash. I have not investigated the reason for this Immanuel *************************************************************************** A day for firm decisions!!!!! Or is it? Immanuel Litzroth Software Development Engineer Enfocus Software Kleindokkaai 3-5 B-9000 Gent Belgium Voice: +32 9 269 23 90 Fax : +32 9 269 16 91 Email: Imm...@en... web : www.enfocus.be *************************************************************************** |