• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Scripts Not Functioning After Update to InDesign CC 2025

Explorer ,
Oct 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

I have a load of scripts used to produce different PDF's. These will not work in the New InDsesign 2025.

Attched screenshot of error message.

This is one of the codes which I have used for over 10 years until the new version.

tell application id "com.adobe.indesign"

 

set _NoCrops to PDF export preset "No Crops"

set _Crops to PDF export preset "Crop NO Text"

set _dest to path to desktop as string

tell active document

set _Name to name

if _Name ends with ".indd" then

set _Name to text 1 thru -6 of _Name

end if

set noCropPath to _dest & _Name & " PROOF" & ".pdf"

set cropPath to _dest & _Name & " PRINT" & ".pdf"

export format PDF type to noCropPath using _NoCrops without showing options

export format PDF type to cropPath using _Crops without showing options

end tell

end tell

 

tell application "Finder"

set label index of file noCropPath to 7

set label index of file cropPath to 2

end tell

 

 

<Title renamed by MOD>

TOPICS
Scripting

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Oct 16, 2024 Oct 16, 2024

Thanks you Can now exprt the 2 PDF's and add the extra words to the file name using this line

set _dest to "Machintosh HD/Users/username/Desktop/"

Just need to sort label tag colour change.

Votes

Translate

Translate
Community Expert ,
Oct 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

You must use POSIX paths starting with InDesign 2025 (as opposite to legacy comma-separated HFS paths). 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

p.s. would be nice if Adobe communicated this change more obviously to the regular users.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 28, 2024 Oct 28, 2024

Copy link to clipboard

Copied

Thanks leo.r

This solved it for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 14, 2024 Oct 14, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

I have same issue in a way: a script that works perfectly with Indesign 2024 it crashed completely with Indesign 2025. I changed the paths to POSIX but with no luck. 

the script takes a list of indd files from a specific folder then

1. creates a package 

2. export an idml file

3. export a preview rgb pdf 

4. converts some color to a specific cmyk value

5. export print pdf 

6. reactivate a layer

 

In Indesign 2025, after updating paths to POSIX: 

1. creates a package corectly

2. fails to export an idml file. even the path is correct but does not save the file, and there is no error message

3. fails to export a preview rgb pdf:

error "Adobe InDesign 2025 got an error: Failed to Export the PDF file." number 9485

 

If it helps I can share the script

Thanks

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

@mstavri

 

Which Mac OS version? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

macos 15

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

quote

macos 15


By @mstavri

 

So the latest Sequoia - there are few threads already with the same PDF export problem. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

Up to date 15.0.1

Probelm started with new version of InDedign last night. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

same issue is also on macos 15.1 - tested on a dev machine

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

also tested on Indesign 20.1 beta and it is the same on production and dev machines

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

@mstavri

 

As always, you should never switch so quickly to the new OS / software version - wait at least for the 1st or 2nd minor update to even begin thinking about switching.

 

Best example - early days of Sonoma... 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

@Robert at ID-Tasker 

I know, that is way i have a developer machine and a producytion one.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

quote

@Robert at ID-Tasker 

I know, that is way i have a developer machine and a producytion one.


By @mstavri

 

Unfortunately, you need to file a bug report and wait for update(s) to OS and/or InDesign.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

This time, the problem is in either InDesign 2025 (or still the script itself not yet being completely updated for 2025 changes); not related to Sequoia.

 

I myself need to investigate similar scripts further, I think I can report the same issue. Will follow up on this.

 

There were several severe bugs in AppleScript support in InDesign 2025 prior to the release; the ones that were caught were quickly fixed by Adobe. It's possible that some have not been caught yet.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

@leo.r I can send you the script if you want

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

Thank you 

Have sorted the error message by deleting last part of script (colour tag). InDesign isn't creating the pdfs on the desktop. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

Ok I can only report that after changing all paths to POSIX, I don't have any issues packaging files (including IDML and PDF).

 

Try to isolate the error and post the specific lines of code that cause the error here.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

this is the export part and attached are two dialog windows that are listing the path for .idml and .pdf 

-- export idml to OneDrive 

export active document format InDesign markup to file (export_path & OpenFileNameActiveWOExt & ".idml") without showing options

display dialog (export_path & OpenFileNameActiveWOExt & ".idml")

--pdf export -- 

tell PDF export preferences

set use security to true

set disallow changing to true

--set security

set use security to true

set change security password to zero_pad

end tell

-- export interactive to OneDrive 

display dialog (export_path & OpenFileNameActiveWOExt & "-interactive.pdf")

export active document to file (export_path & OpenFileNameActiveWOExt & "-interactive.pdf") format PDF type using PDF export preset thePdfPresetForInteractive without showing options

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

quote

-- export idml to OneDrive 

-- export interactive to OneDrive 


By @mstavri

 

and will it make a difference if you export locally, for example to your Documents folder?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

I am not allowed to save any files outside OneDrive folder.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

Also is it very strange because before exports is a package line that works and creates a complete package.  

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Copy link to clipboard

Copied

also, grant Full Disc Access to InDesign in System Settings > Security & Privacy (if it's not there already). 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
27m ago 27m ago

Copy link to clipboard

Copied

LATEST

Thank you! I was worried my Javascripts broke, but apparently certain ones need Full Disk Access enabled on Mac for InDesign to run them all.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines