[LA.pm] app_running status...

David Heayn davidmailinglist at cloudgraphics.com
Wed Nov 1 19:27:26 PST 2006


I don't have to use Applescript as a shell command.

>system("osascript -e 'tell app \"System Events\" to count processes
>whose name is \"firefox-bin\"'")

I'm only using a not so portable line because it's the closest to a 
running function I have yet. I'm merely looking for insight using an 
outside scripting language in perl, or working with piping shell 
outputs to a variable.


David Heayn * http://www.cloudgraphics.com * (213)925.3283


More information about the Losangeles-pm mailing list