Re: Killing an appleScript applet
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