in reply to Running an external GUI program

Howdy!

Have you looked into using AppleScript to control the application? I think you should be able to end your script with a quit command.

There are a number of Mac:: modules on CPAN that may help with this, but I have not really played with them.

yours,
Michael