• 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: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

References: 
 >How to kill a process using AS (From: Kumar Shailove <email@hidden>)

  • Prev by Date: Re: [OT] Re: Smile and FruitMenu
  • Next by Date: Re: [OT] Re: Smile and FruitMenu
  • Previous by thread: Re: How to kill a process using AS
  • Next by thread: RE: How to kill a process using AS
  • Index(es):
    • Date
    • Thread