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

Re: [MacPerl] using System with Mac Perl



At 12:39 -0700 2000.09.25, jtownsen wrote:
>I'd like to use system to launch a Mac app then continue the Perl script
>once the app is done.

You can't.  Well, you could, but you would need some program available to
MPW to launch those.  MacPerl's system(), like on Unix, gives you access to
the shell.  The shell, in this case, is MPW, and you can only call tools
that can be run from it.

To launch an app use Mac::Apps::Launch.  It comes with cpan-mac and is on
CPAN by itself.

Or you could use Mac::Processes, which is what Mac::Apps::Launch is a
wrapper around, directly.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org