I meant to add this to the last email. If I call: system("osascript -e 'tell app \"System Events\" to count processes whose name is \"firefox-bin\"'") how do I return the shell results/truth back to a perl variable for a switch? David Heayn * http://www.cloudgraphics.com * (213)925.3283