Re: [MacPerl] Calling a MacPerl script from an application

2003-11-26 Thread Martin Buchmann
Jeff, John and Joshua. Jeff wrote: Try this: \write18{MacPerl <> <>} Thanks, i tried this before. MacPerl is launched and that's it. So i think the answer to my actual question is just: "No, it's not possible". I don't think that's been determined. Well, i appreciate your optimism but i think

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread Jeff Lowrey
At 2:31 PM +0100 11/25/03, Martin Buchmann wrote: Anyway, i can launch MacPerl with this method too but nothing more. Whatever i add to the command as an argument, MacPerl is launched and that's it, nothing more. It looked to me like the event being sent was the DoScript event. Which as John sai

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread Joshua Juran
--On Tuesday, November 25, 2003 10:59 AM +0100 Martin Buchmann <[EMAIL PROTECTED]> wrote: 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 somethi

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread John Delacour
At 2:31 pm +0100 25/11/03, Martin Buchmann wrote: Anyway, i can launch MacPerl with this method too but nothing more. Whatever i add to the command as an argument, MacPerl is launched and that's it, nothing more. So i think the answer to my actual question is just: "No, it's not possible". In o

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread Martin Buchmann
John, FORGET about droplets!! You send the Do Script event to MacPerl, not to any droplet. Okay, this is what i got wrong thw whole time, you are right. But i'm not sure what kind of event i'm sending from pdftex. I asked the author, maybe he can provide some information. I just came up with

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread John Delacour
At 10:59 am +0100 25/11/03, Martin Buchmann wrote: 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 ha

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-25 Thread Martin Buchmann
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.

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-24 Thread John Delacour
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

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-24 Thread Chris Nandor
At 14:53 +0100 2003.11.24, Martin Buchmann wrote: >The call was 'test "Hallo"'. I _only_ need some >way to make my droplet aware of that "Hallo". What is "Hallo"? What is "test"? >I'm sure someone with more experience or better >understand would have solved it without any >problem but onceagain

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-24 Thread Joshua Juran
--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

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-24 Thread Martin Buchmann
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

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-24 Thread Martin Buchmann
John, thanks for your mails. I will read it carefully and see what i can get. Thanks for the hint with CaptureAE. Best regards Martin -- A conclusion is simply the place where someone got tired of thinking.

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-23 Thread John Delacour
At 3:11 am + 24/11/03, John Delacour wrote: The script below demonstrates how to pass arguments to a script. Although the dictionary does not mention arguments in the Do Script entry, these are passed as items of a list, the first item of which is the script text. I should have said that

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-23 Thread John Delacour
At 7:54 pm +0100 23/11/03, Martin Buchmann wrote: 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. The scr

Re: [MacPerl] Calling a MacPerl script from an application

2003-11-23 Thread John Delacour
At 7:54 pm +0100 23/11/03, Martin Buchmann wrote: ... 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.