I just uploaded Mac::Apps::Launch. Now IsRunning() returns the PSN, instead of simple true/false (1/0).
Here's a fun, simple, and efficient script to kill the Dock (which should relaunch immediately): use Mac::Apps::Launch 1.92; use Mac::Processes; use POSIX 'SIGTERM'; my $psn = IsRunning('com.apple.dock'); kill SIGTERM, GetProcessPID($psn); -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/