How to find plug-in dependencies?

Posted on
Sat Jul 15, 2023 2:07 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

How to find plug-in dependencies?

Is there any way to find which actions, triggers, etc depend on a particular plug-in? I'm specifically interested in the EPS Super Conditions plug-in which will no longer work in the next version of Indigo. However, it's likely there will be others as well. Multitool does a good job of this for Devices but not for plug-ins that I can see. Thanks.

--Dave

Posted on
Sat Jul 15, 2023 3:10 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How to find plug-in dependencies?

Yes, but it's not as simple as using a plugin tool.
The pluginID for SuperConditions is "com.eps.indigoplugin.super-conditions". You will need this.

Make note of the name of the Database that Indigo is using. It's in the title bar of the main Indigo window.

Shut down the Indigo server. Not just the client, but the server.

Go to the folder where your database file is saved. Usually this is the "Databases" folder in the main Indigo install folder, but it could be somewhere else. Find your database file. Right click and select "Duplicate". You will use this copy of your database so you can't mess up the original.

You'll need a decent text editor, suitable for programmers. I recommend BBEdit (https://www.barebones.com/products/textwrangler/). The free version used to be called TextWrangler, but there's now a free version of the main app.

Open the COPY of the database in the editor. Search for the pluginID above. For an action group using SuperConditions, you'll see something like:

Code: Select all
      <ActionGroup type="dict">
         <ActionSteps type="vector">
            <Action type="dict">
               <Class type="integer">999</Class>
               <MetaProps type="dict">
                  <com.eps.indigoplugin.super-conditions type="dict">
,
,
,
                  </com.eps.indigoplugin.super-conditions>
               </MetaProps>
               <ObjVers type="integer">14</ObjVers>
               <PluginID type="string">com.eps.indigoplugin.super-conditions</PluginID>
               <TypeIdPlugin type="string">condition</TypeIdPlugin>
               <TypeLabelPlugin type="string">Conditional</TypeLabelPlugin>
            </Action>
         </ActionSteps>
         <FolderID type="integer">1480464125</FolderID>
         <ID type="integer">1113991760</ID>
         <Name type="string">Testing</Name>
         <ObjVers type="integer">2</ObjVers>
      </ActionGroup>


I deleted a crap-ton of lines between the two com.eps.indigoplugin.super-conditions lines. You can collapse those in the editor by clicking on the little triangle in the left border.

So you can see that the action group named "Testing" with ID "1113991760" uses SuperConditions.

Repeat the search until you get to the end of the database file.

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

Posted on
Sat Jul 15, 2023 4:12 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: How to find plug-in dependencies?

Thanks for the very clear directions, Joe. Works great!

--Dave

Posted on
Sat Jul 15, 2023 4:34 pm
Dual offline
Posts: 261
Joined: Feb 05, 2019

Re: How to find plug-in dependencies?

Excellent instructions. Thanks.


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests