Did something recently change with either Script Editor or InDesign 16.4? I am not getting errors in long existing scripts when trying to capture the count of paragraphs in a selected text frame. Here is my code;
tell application “Adobe InDesign 2021”
--Set to 5.0 scripting object model set version of script preferences to 5.0 -- Variable Definition Section-- set myBox to parent of selection -- active selected text frame being styled --sets the default number of paragraphs in the selected text frame set firstParaCount to count of paragraphs of myBox
The error I’m getting is - “Adobe InDesign 2021 got an error: every paragraph of page id 8055 of spread id 8048 of document “2022 SNO Master Style Sheet.indd” doesn’t understand the “count” message.”
I’ve used this same coding philosophy for 20 years now and have never gotten these errors. Thank you in advanced for any assistance you can offer.