Re: Any Way to Force an Idle Handler System Call? (Redux)
Re: Any Way to Force an Idle Handler System Call? (Redux)
- Subject: Re: Any Way to Force an Idle Handler System Call? (Redux)
- From: "S. J. Cunningham" <email@hidden>
- Date: Sun, 08 Jun 2014 09:38:01 -0400
On Jun 8, 2014, at 8:59 AM, Shane Stanley wrote:
> On 8 Jun 2014, at 10:53 pm, S. J. Cunningham <email@hidden> wrote:
>
>> Any ideas?
>
> Did you try the snippet I posted?
Yes. The app quits but the quit handler is not invoked. I tried
tell application "System Events" to set pid to unix id of process "Idle App"
do shell script "kill " & pid
as well as
tell application "System Events" to set pid to unix id of process "Idle App"
do shell script "kill " & "-x " & pid
with x in the list:
Some of the more commonly used signals:
1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
6 ABRT (abort)
9 KILL (non-catchable, non-ignorable kill)
14 ALRM (alarm clock)
15 TERM (software termination signal)
and none of them invoke the quit handler. But quitting via the Activity Monitor does.
_______________________________________________
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