Re: How to find out if an application is running

2005-10-13 Thread Peter N Lewis
At 20:02 -0700 13/10/05, Ted Zeng wrote: Here is the fun part: I made a killapp.pl script and Call it to kill Bridge with `killapp.pl Bridge ` And it kills itself. As it turned out, the script finds itself from the list because the Command line includes Bridge(or "Adobe Illustrator" for Illustr

Re: How to find out if an application is running

2005-10-13 Thread Dominic Dunlop
On 2005–10–13, at 19:36, Ted Zeng wrote: As it turns out, only Sherm's version works For all the situations. Great! Go for it. The tough bit about there being more than one way to do it is to resist the temptation to try them all, even after you've found one that works. I can't always resi

Re: How to find out if an application is running

2005-10-13 Thread Ted Zeng
You are right. After I got the info. On how to detect the process, I added the codes to kill them. Then I thought they all work. Didn't think what I had asked. Here is the fun part: I made a killapp.pl script and Call it to kill Bridge with `killapp.pl Bridge ` And it kills itself. As it turned

set default user-agent for Safari

2005-10-13 Thread Joseph Alotta
Greetings, I know this is off topic, but does anyone know how to set the default user-agent in Safari to MSIE 6.0 permanently? I have the debug menu but that doesn't work in websites that open a new window. Joe.

Re: How to find out if an application is running

2005-10-13 Thread Sherm Pendley
On Oct 13, 2005, at 1:36 PM, Ted Zeng wrote: Here is what I did: I clicked the menu "File:New" and Illustrator presents An "New document" dialog. Now, I go to execute the commands to kill it. The AppleScript version could not kill it. Makes sense. The AppleScript would presumably (I don't ha

Re: How to find out if an application is running

2005-10-13 Thread Jeff Lowrey
At 01:36 PM 10/13/2005, Ted Zeng wrote: As it turns out, only Sherm's version works For all the situations. Actually, merely for the situation that you didn't tell us you were aiming for. You asked "How to find out if an application is running". You didn't ask "How do I find out a PID so I ca

Re: How to find out if an application is running

2005-10-13 Thread Ted Zeng
As it turns out, only Sherm's version works For all the situations. Here is what I did: I clicked the menu "File:New" and Illustrator presents An "New document" dialog. Now, I go to execute the commands to kill it. The AppleScript version could not kill it. "kill" does kill it.(Sherm's code) Ki

Re: How to find out if an application is running

2005-10-13 Thread Dominic Dunlop
On 2005–10–13, at 12:40, David Cantrell wrote: On Thu, Oct 13, 2005 at 08:51:22AM +0200, Dominic Dunlop wrote: A late arrival which hasn't been mentioned so far: $ killall -0 Illustrator 2>/dev/null && echo "Illustrator is running" killall is a Really Bad Idea. While it does indeed do what

Re: How to find out if an application is running

2005-10-13 Thread David Cantrell
On Thu, Oct 13, 2005 at 08:51:22AM +0200, Dominic Dunlop wrote: > A late arrival which hasn't been mentioned so far: > $ killall -0 Illustrator 2>/dev/null && echo "Illustrator is running" killall is a Really Bad Idea. While it does indeed do what you intend on OS X, on other commercial Unices li