emacs-devel
[Top][All Lists]
Advanced

[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 " . "dle2obj ZformenumnamewanttypefileseldTEXTLucy:private:tmp:he llo.txtfromnull")) nil undecoded-file-name) mac-ae-open-documents((mac-apple-event [core-event open-documents] ("aevt" ("----" "obj " . "dle2obj ZformenumnamewanttypefileseldTEXTLucy:private:tmp:he llo.txtfromnull"))))
  call-interactively(mac-ae-open-documents)
mac-dispatch-apple-event((mac-apple-event [core-event open- documents] ("aevt" ("----" "obj " . "dle2obj ZformenumnamewanttypefileseldTEXTLucy:private:tmp:he llo.txtfromnull"))))
  call-interactively(mac-dispatch-apple-event)





reply via email to

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