At 2:37 pm -0700 12/10/05, Ted Zeng wrote:

I would like to find out if an application like Illustrator is running
On OS X or not from a perl script. How can I do it?


#!/usr/bin/perl
@processes = split /, /, `osascript -e '
tell app "system events" to name of processes whose visible is true'`;
print join $/, @processes


...if you don't mind waiting a little.

JD

Reply via email to