[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apple event handling (Carbon port)
From: |
David Reitter |
Subject: |
Apple event handling (Carbon port) |
Date: |
Mon, 2 Jan 2006 13:02:25 +0000 |
Emacs should understand the "open document" Apple event, as far as
the code goes.
However, this little AppleScript
tell application "Emacs"
activate
open (file "Lucy:private:tmp:hello.txt")
end tell
just leads to the following error:
--Lisp error: (error "Parameter for \"----\" is not a list")
signal(error ("Parameter for \"----\" is not a list"))
error("Parameter for \"%s\" is not a list" "----")
mac-ae-list(("aevt" ("----" "obj " . "dle2 obj
Z formenum namewanttype fileseldTEXT Lucy:private:tmp:he
llo.txtfromnull ")) nil undecoded-file-name)
mac-ae-open-documents((mac-apple-event [core-event open-documents]
("aevt" ("----" "obj " . "dle2 obj
Z formenum namewanttype fileseldTEXT Lucy:private:tmp:he
llo.txtfromnull "))))
call-interactively(mac-ae-open-documents)
mac-dispatch-apple-event((mac-apple-event [core-event open-
documents] ("aevt" ("----" "obj " . "dle2 obj
Z formenum namewanttype fileseldTEXT Lucy:private:tmp:he
llo.txtfromnull "))))
call-interactively(mac-dispatch-apple-event)
- Apple event handling (Carbon port),
David Reitter <=