Indesign export JPEG script with control of suffix
How can I write a JavaScript script for InDesign to export JPEGs while ensuring that any leftover text in the "Suffix" field from previous exports (e.g., "_^P" left after exporting pages) is cleared or replaced?

Currently, when I use an export script, it adds "_01" to every image due to this leftover input.
Is there a way to access and modify the value in the "Suffix" field through the script?
Any help will be appreciated.
