Re: System Events 'not running'
Re: System Events 'not running'
- Subject: Re: System Events 'not running'
- From: Shane Stanley <email@hidden>
- Date: Sat, 03 Nov 2018 15:24:53 +1100
> On 3 Nov 2018, at 8:44 am, Jacopille, David <email@hidden> wrote:
>
> That pushed the problem to System Events, which errored with: “Application
> System Events isn’t running”.
System Events will quit after a period of inactivity. The default is something
quite low, so you might want to change it -- see the 'quit delay' property.
> So I kill -9 and relaunch System Events.
>
> Half the time we still get the “Application System Events isn’t running”
> after the first kill.
AppleScript is probably caching the reference to the app. Try adding a delay
after any kill. You might also do better if address System Events by id rather
than by name.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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