pluginkit -m -A -i com.mycompany.finderExt
If the extension is enabled, the call will return
"+ com.mycompany.finderExt (1)"
If the extension is not enabled, the call will return
"- com.mycompany.finderExt (1)"
Pay attention to the plus and minus signs, just analyze the return to determine if the extension is enabled.
source share