Joshua, John and Chris,

sorry for all that mess. I think it's harder to make clear what i'm talking about than i thought in the beginning.

'test' is the name of the MacPerl droplet. "Hallo" was just something i tried to pass to the droplet. In a real case it would have been a filename, etc.

In my test tex file i just have something like this:

\write18{test "Hallo"}

That's what i called "the call" before. Normally pdftex processes TeX source and generates a pdf from that. The write18 command enables you to access shell escapes with unixish systems, i.e. the argument of the command is passed to the shell. Now this is also working with MacOS 9.2.2 even without a shell. I don't know how exactely but it must have something to do with AppleEvents i guessed.

So, i thought there is an "easy" way to receive the event with my MacPerl script and i also thought one of you could tell me which would be that way. Yeah, i knwo that i'm too naive sometimes.

You are totally right that i can pass arguments to MacPerl using from a AppleScript:

tell application "MacPerl" to Do Script {"OS9:Martin:tex:write18:test.pl", "arg1", "arg2"}

arg1 and arg2 are elements of the ARGV array now and CaptureAE gives:

Process("MacPerl").SendAE "misc,dosc,'----':["OS9:Martin:tex:write18:test.pl", "arg1", "arg2"], &subj:'null'(), &csig:magn(«00010000»)"

But i don't want to use AppleScript at all. If i try to call the script "test.pl" saved as droplet "test" from pdftex i looks like this in CaptureAE:

Process("MacPerl").SendAE "misc,dosc,'----':[alis(«0000000000F000020000034F5339000000000000000000000000000000000000000000000000ABA7815842440000001B142404746573740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001C53FEBBE8D9ED4150504C4D72504CFFFFFFFF000000000000000000000000000000000000000862696E61726965730001000C001B14240013DA7500104456000200354F53393A4170706C69636174696F6E7320284D6163204F532039293A434D616354655820342E323A62696E61726965733A7465737400FFFF0000»)]"

as i showed before. I think the difference is pretty obvious but i have no idea what it means :-( Could you tell me if i could access that part inside the []?

Martin

--
For God's sake, stop researching for a while and begin to think!

Reply via email to