I have an EA that looks for specific location (in it's current form InDesign 2020), but to simplify, I'd like to have it just look through all adobe InD version folders (and if it can even relate what version of the plugin it corresponds to (2019, 2018, 2020, etc)
#!/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>"