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:42:26 -0200
I know you said "kill", and not "quit". But I think you should try quitting before killing.
Is this what you want?
property Thereis : false
tell application "System Events"
set TheList to get name of every process
repeat with i from 1 to the count of TheList
if item i of TheList contains "iSync" then
set Thereis to true
end if
end repeat
end tell
if Thereis is true then
tell application "iSync" to quit
set Thereis to false
end if
Bernardo Hoehl
Rio de Janeiro - Brazil
==========================================================
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
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