Does this script only work with InDedign 2022? You can no longer download that version via Creative Cloud.
No. The code just looks for ‘Adobe InDesign’. If it is not clear, the script prompts you for the application. I have been using it with InD 2026.