• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to kill a process using AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to kill a process using AS
      • From: Christopher Nebel <email@hidden>
References: 
 >How to kill a process using AS (From: Kumar Shailove <email@hidden>)

  • Prev by Date: error code 2 when renaming file
  • Next by Date: Re: [OT] Re: Smile and FruitMenu
  • Previous by thread: How to kill a process using AS
  • Next by thread: Re: How to kill a process using AS
  • Index(es):
    • Date
    • Thread