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 («FFFF000000020E4465736B746F7020466F6C646572B5B8403DE495C40000000010E6CD200EB5B840000000000000000010E6CD10000D3A880000772054455854414C46410100»)"
Process("MacPerl").SendAE "misc,dosc,'----':[alis(«0000000000F000020000034F5339000000000000000000000000000000000000000000000000ABA7815842440000001B142404746573740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001C4E01BBE7C5AE4150504C4D72504CFFFFFFFF000000000000000000000000000000000000000862696E61726965730001000C001B14240013DA7500104456000200354F53393A4170706C69636174696F6E7320284D6163204F532039293A434D616354655820342E323A62696E61726965733A7465737400FFFF0000»)]"
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 :-(
Martin
-- Schlagfertige Repliken für jede Gelegenheit #3 Das hat schon mal jemand zu mir gesagt, da ist mir auch nichts eingefallen. http://www.titanic-magazin.de