develooper Front page | perl.macosx | Postings from January 2002

Calling Perl from AppleScript

Thread Next
From:
Gero Herrmann
Date:
January 3, 2002 05:41
Subject:
Calling Perl from AppleScript
Message ID:
f05101000b85a08154791@[192.168.0.2]
With MacPerl I can say in AppleScript

    tell application "MacPerl"
        ignoring application responses
            Do Script "myscript.pl"
        end ignoring
    end tell

and the call returns immediately, without waiting for the Perl script to
finish.

If I use the "do shell script" command in Mac OS 10.1.2 to call Perl, is
there any way to skip waiting for the Perl script to finish?

    do shell script "/usr/bin/perl myscript.pl"

Adding a tell block to some application and "ignoring application
responses" does not work well enough.  Is there any way to modify the UNIX
command that starts Perl so that a background process is spawned and
control returned to AppleScript immediately?  A simple "&" or "nohup" does
not make a change.

Gero Herrmann

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About