Out of curiosity, what were the correct arguments, for $mpost->exec()?
This is what i use at the moment:
#!perl -w
use Mac::Glue;
my $mpcommand = "mpost text.mp"; my $path = "OS9:Desktop Folder:";
my $mpost = Mac::Glue->new('mpost');
$mpost->exec("$mpcommand", in_the_folder => "$path");
$mpost->quit();
That's really great because i have a lot of scripts using other applications like tex, mpost, dvips, ghostscript, etc. and now using them from within MacPerl is way cooler and easier. My code always was a crappy due to the applescripts parts in it, now it's really elegant :-)
\bye Martin
P.S. WOW part II: I just found out how to hide apps in the background using Mac::Apps::Launch. That's kind of scary just make new files appear on the desktop without see any app ;-)
-- There are 10 kinds of people: those who understand binary, and those who don't