Automated Reloading of a plugin

Posted on
Thu Nov 24, 2016 7:33 am
Radjin offline
User avatar
Posts: 151
Joined: May 13, 2015

Automated Reloading of a plugin

I use AppleScript within Indigo to check the status of other apps on my server. If I find one not running I restart it, but often indigo may not see it and give errors. Reloading that particular plugin resolves the issue. Is there a way to call for a plugin reload with AppleScript?

It's not rocket science...

Posted on
Fri Nov 25, 2016 12:37 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Automated Reloading of a plugin

You can restart plugins in Python scripts. Create an action group that runs the script. Then execute the action group from your AppleScript when needed.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Nov 25, 2016 9:07 am
Radjin offline
User avatar
Posts: 151
Joined: May 13, 2015

Re: Automated Reloading of a plugin

From a noob in Python the following is what I was able to glean but I feel something is missing:

plugin = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.Cynical SecuritySpy")
if plugin.isEnabled():
plugin.restart()

Am I right as there is no response.

It's not rocket science...

Posted on
Fri Nov 25, 2016 9:48 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Automated Reloading of a plugin

Radjin wrote:
From a noob in Python the following is what I was able to glean but I feel something is missing:

Code: Select all
plugin = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.Cynical SecuritySpy")
if plugin.isEnabled():
   plugin.restart()

Am I right as there is no response.


The ID for the SecuritySpy plugin is "org.cynic.indigo.securityspy". So you need to do:

Code: Select all
plugin = indigo.server.getPlugin("org.cynic.indigo.securityspy")
if plugin.isEnabled():
   plugin.restart()


You need to look inside the info.plist file in the plugin to get the value of the CFBundleIdentifier, which is the Plugin ID.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests