Re: How to kill a process using AS
Re: How to kill a process using AS
- Subject: Re: How to kill a process using AS
- From: Bernardo Hoehl <email@hidden>
- Date: Tue, 7 Dec 2004 17:53:24 -0200
I found this one after a search on Mascripter.net:
set app_name to "iSync"
set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
if the_pid is not "" then do shell script ("kill -9 " & the_pid)
Bernardo
==============
On 07 Dec, 2004, at 11:38 AM, Kumar Shailove wrote:
Hi list,
How to kill a process using AppleScript.
What I know is the name of the process.
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden