--On Monday, November 24, 2003 2:53 PM +0100 Martin Buchmann <[EMAIL PROTECTED]> wrote:

John,

i tried to understand your examples but i'm not sure if we are talking
about the same issue. I'm a bit confused about your AppleScript
generating MacPerl-Script passing arguments to each other and such stuff.
I only need a MacPerl script handling some arguments. I don't know
AppleScript really well and don't feel any need to bother with it.

I have this external application called pdftex which can call a MacPerl
script which is saved as a droplet. The droplet is a vital fact because
pdftex needs something with applications status to call. I know what
droplets were made for and use them quite often.

If i let pdftex call my test script Capture AE shows the following:

Process("test").SendAE "CMTX,exec,'----':"test "Hallo"", dest:fss
(«FFFF000000020E4465736B746F7020466F6C646572B5B8403DE495C40000000010E6CD2
00EB5B840000000000000000010E6CD10000D3A880000772054455854414C46410100»)"

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?


The call was 'test "Hallo"'. I _only_ need some way to make my droplet
aware of that "Hallo".  I read in Chris' AppleEvent Tutorial  that a
MacPerl script can recieve AppleEvents but i don't really understand how
to fit the given example to my purpose. I know it's not Chris' fault ;-)

I'm sure someone with more experience or better understand would have
solved it without any problem but onceagain it seems that i'm not that
smart :-(

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). You'll need to have some program checking for that Apple event and passing the data to your code. That program can be the same Perl script or it can be an entirely different program.


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.

Josh

--
Joshua Juran
Metamage Software Creations - Mac Software and Consulting
http://www.metamage.com/

* Creation at the highest state of the art *




Reply via email to