Indesign scripts are not working in the 2025 Indesign version.
Since 2018, we have been using several scripts for PDF export, which worked perfectly. Unfortunately, since the 2025 update, there is no error message, but it does not create the requested pdf.
This is how the script source looks like:
tell application "Adobe InDesign 2025"
set mgFolder to file path of active document
set mgName to name of active document
set text item delimiters of AppleScript to {"."}
set mgShortName to text item 1 of mgName
set text item delimiters of AppleScript to ""
set page range of PDF export preferences to "All"
tell application id "com.adobe.InDesign"
set mgFilePath to mgFolder & mgShortName & ".pdf" as string
tell active document
export format PDF type to mgFilePath using "Kosmos_BoardGame_2017" with page range without showing options
end tell
display alert "A pdf elkészült a Kosmos_BoardGame_2017 presettel."
end tell
end tell
It should copy the pdf file next to the Indesign file, but it does not appear.
What should be changed in the script to make it work again?
Thank you.
