In this script, Indesign hides the Progress Bar when I want it to be showing… any help would be appreciated.
set ImageNameList to {}
set pageRefList to {}
set linkRefList to {}
my getLinkInfo(ImageNameList, pageRefList, linkRefList)
on getLinkInfo(ImageNameList, pageRefList, linkRefList)
set rpt to 1
try
tell application "Adobe InDesign 2023"
activate
tell active document
repeat with pageNo from 1 to (count of pages)
set myrectangles to all graphics of page pageNo
repeat with pageitem from 1 to (count of myrectangles)
set ImageName to get name of item link of (item pageitem of myrectangles) as string --- gets the Image name from (pageitem) on page (pageNo)
set pageRef to name of parent page of parent of link ImageName --- gets the Image page number of 'ImageName'
set linkRef to file path of link ImageName --- gets the Link Reference Path of 'ImageName'
copy ImageName to end of ImageNameList --- create list of image names
copy pageRef to end of pageRefList --- create list of page numbers
copy linkRef to end of linkRefList --- create list of link references
end repeat
set my progress total steps to (count of pages)
set my progress completed steps to pageNo
set my progress description to "Processing images"
set my progress additional description to pageNo
delay 5
end repeat
end tell
end tell
on error e
my errorHandlerCancel(e)
end try
end getLinkInfo