Check If Mac is Shutting Down Variable

Posted on
Tue Jan 31, 2023 10:48 pm
ukie offline
Posts: 69
Joined: Oct 15, 2010

Check If Mac is Shutting Down Variable

When the mac is set to shutdown or restart, all running applications exit in different orders.
I am using the SecuritySpy plugin (Cynical). I also have a trigger that sends a notification when Indigo has lost communication with SecuritySpy.
However, the trigger should not run when the Mac is rebooting or shutting down. Basically, SecuritySpy tends to exit before Indigo.
So I need some way for Indigo to know when the shutdown has been initiated.

Any ideas?

Posted on
Wed Feb 01, 2023 7:43 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: Check If Mac is Shutting Down Variable

Can you just user a timer? Only send notification if it's lost connection longer than the time it takes indigo to shut down? Maybe a minute? Would prevent those notifications and hopefully not an issue unless you normally respond within seconds

Posted on
Mon Feb 06, 2023 12:49 am
ukie offline
Posts: 69
Joined: Oct 15, 2010

Re: Check If Mac is Shutting Down Variable

That is one way, but I would loose notifications for any intermittent SecuritySpy server issues.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests