On Friday, January 16, 2004, at 06:56 PM, John Delacour wrote:
At 4:16 pm -0800 16/1/04, Chris Nandor wrote:
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Delacour)
wrote:
$asresult = `osascript -e '$ass'`;
FWIW: this is a bit dangerous, and slow. You would need to make sure the
script did not contain any bad shell characters combined with a wayward '.
Yes, of course -- and I can thing of no way round it in this case.
I think IPC::Run can do this nicely, but I haven't exactly tested it:
use IPC::Run qw(run);
run('osascript', \$ass, \$asresult);