[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Exec()ing programs in MacPerl



shaw@ISI.EDU writes:
>What I'd like to do is click on a [web page] link and launch an
>application (a Director Projector), but I haven't succeeded in
>configuring my browser correctly.  So instead, I execute a &MacPerl'
>DoAppleScript command in a MacPerl CGI script to launch the
>application.  This works well except that, since exec() isn't
>supported, the Perl script continues to run, and Netscape continues to
>churn until I exit the application.
>
>1. Would it be easier to just run the AppleScript command as a CGI
>   script?

Probably, although the AppleScript won't quit either.

>2. Has anyone implemented a workaround for exec()?

You could probably get away with just writing MacPerl'Quit after the
AppleScript.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
  "Or to look at it another way, instead of calling it a 'feeble' or
   'brain dead' instruction set, can you think of it as a RISC?"
                                                       -- tmoran@bix.com