• 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: Killing an appleScript applet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing an appleScript applet


  • Subject: Re: Killing an appleScript applet
  • From: Lists <email@hidden>
  • Date: Thu, 29 May 2014 12:30:59 -0700

On May 29, 2014, at 12:04 PM, "Stockly, Ed" <email@hidden> wrote:

I need to have one applescript kill an applet. Is this doable?

It needs to force quit instantly. I want to use the kill all shell script,
but I'm not sure how to address the applet.

ES

I think I would try something like this. After you build your script app. call it "whatever.app", then create another script app to launch "whatever.app" with a do shell script, grab the PID number and kill it when you need to.

not quite real code for a calling/killing script app

do shell script "open -a whatever.app >/dev/null 2>&1 & echo $!"
set pid to result
display dialog "Kill whatever.app." buttons {"Kill"} default button 1
do shell script "kill " & pid
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Killing an appleScript applet
      • From: Alex Zavatone <email@hidden>
References: 
 >Killing an appleScript applet (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Killing an appleScript applet
  • Next by Date: Re: Killing an appleScript applet
  • Previous by thread: Killing an appleScript applet
  • Next by thread: Re: Killing an appleScript applet
  • Index(es):
    • Date
    • Thread