i want to use a MacPerl script which is called from another application, i.e. CMacTeX's pdftex. I thought i could save the script as droplet and access parameters given to the script during the call with @ARGV. But the array is empty.
Maybe i should explain the whole thing a bit more detailed. The pdftex application has a feature called write18 command which is used to access unix shells from within TeX documents. I recently found out that this works also under OS 9.2.2. I have no idea how Tom Kiffe did this and i don't think i would understand it but if a have a simple hello world script saved as a droplet i can call it from a TeX file.
Now i wanted to use this feature to do some file conversion, etc. at runtime of pdftex in the background. As mentioned before i thought i could access parameters given to the script via the ARGV array which is not the case.
Other applications from the CMacTeX bundle can take arguments in write18 calls, e.g. filenames. So i was wondering if my script could analyze the AppleEvent call and get the information i need.
I remembered the AETracker app on the MacPerl-CD but it's not really stable with my system and i know nearly nothing about AppleEvents so far. I'm not able to read the log file written by the app, so far.
That leads me to my basic questions: Is it possible to get the information from the AppleEvent call in a MacPerl script?
Best regards and thanks in advance Martin
-- What ever you want is going to cost a little more than it is worth. -- The Second Law Of Thermodynamics