EA for determining Indesign plugin

jwojda
Valued Contributor II

I need to track a plugin for InDesign, I thought I would utilize EAs to accomplish this, and I have one working for it. However, it is hardcoded to a specific version of InDesign, could someone help me modify this for any version of InDesign and report out what version of Indesign and what version of the plugin?

#!/bin/sh

RESULT="Not Installed"

for i in /Applications/Adobe InDesign 2020/Plug-Ins/DemandTec.InDesignPlugin; do

  if [[ $? -eq 0 ]]; then
    RESULT=$(/usr/bin/defaults read /Applications/Adobe InDesign 2020/Plug-Ins/DemandTec.InDesignPlugin/Versions/A/Resources/Info.plist CFBundleShortVersionString)
  fi
done
/bin/echo "<result>$RESULT</result>"

Thank you!

0 REPLIES 0