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

Calling Perl from AppleScript

Thread Next
Gero Herrmann
January 3, 2002 05:41
Calling Perl from AppleScript
Message ID:
With MacPerl I can say in AppleScript

    tell application "MacPerl"
        ignoring application responses
            Do Script ""
        end ignoring
    end tell

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

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"

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About