At 12:11 pm -0500 24/11/03, Joshua Juran wrote:

Is this from pdftex? (Why does it say "test"??) I have no idea what CMTX/exec is or what it's supposed to do exactly. But apparently it wants to execute something... In what context is 'test "Hallo' mean to be interpreted, i.e. what language is that?



Unfortunately there's no good way (that I'm aware of) to pass arguments to a Perl script running in the MacPerl context (which includes droplets).

As I wrote in my last message, there certainly is:


tell app "MacPerl" to do script {filename, arg1, arg2 arg3. etc}

If you can tell me *exactly* how to interpret the CMTX/exec event, I could write a program to respond to it, though I would do so in C++. There may be those on this list who would volunteer to do it in Perl.


This is the first mention of this event. An AppleScript applet can simply be given a handler to respond to it and pass it on to MacPerl, but I still don't see where droplets come into it.

«event CMTXexec» ("hello")

on «event CMTXexec» (_something)
        tell application "MacPerl"
                Do Script "print " & _something
        end tell
end «event CMTXexec»

JD



Reply via email to