MacOS9. Of course.

How do I launch an external application with parameters? 

I've looked at Mac::Apps::Launch, but that only seems to provide means
to launch or kill applications, bring them forward or backward, hide and
show them. I see no hint in its docs on how to open a program using an
external file as a parameter.

I've tried the following with Applescript, which works fine (it's
supposed to launch Acrobat Distiller with a given PostScript file) but
takes 10 to 20 seconds of freezing time (compiling the Applescript)
before anything happens:

        $path =~ s/([\\"])/\\$1/g;
        MacPerl::DoAppleScript(<<"*AS*");
        tell application "Finder"
            set distiller to get application file id "DSTL"
            open file "$path" using distiller
        end tell
        *AS*

(script indented as a whole)

I'd like to have a faster alternative. Please.

-- 
        Bart.

Reply via email to