Skip to main content
Known Participant
Apr 24, 2025 9:00 AM UTC
Question

InDesign Javacsript to Change destination space of RGB profile in Convert to profile dialog

Need Javascript code to Change destination space of RGB profile in Convert to profile dialog

 

 

9 replies

Robert at ID-Tasker
Legend
Apr 24, 2025 11:48 AM UTC

@dt0245d3009278 

 

"Convert to profile" is a dialog - working on its own - you can't set its properties.

 

Translate
Community Expert
Apr 24, 2025 11:38 AM UTC

Hi @dt0245d3009278 ,

look into the script Color Script 1.0.8 by Roland Dreger:

 

Farbmanagement in Adobe InDesign
Roland Dreger, 28. August 2013, InDesign JavaScript

 

Das Skript »Color Script 1.0.8« hilft beim Farbmanagement in Adobe InDesign.

 

Die Idee dahinter ist folgende: Immer wieder bekommt man InDesign-Dokumente, die, sagen wir mal, nicht ganz so optimal aufbereitet wurden. Das vorliegende Skript ist dazu gedacht, sich schnell einen Überblick über das Dokument und die enthaltenen Bilder zu verschaffen. Sind Korrekturen nötig, können diese gleich mit dem Skript erledigt werden.

 

https://www.rolanddreger.net/de/1/farbmanagement-in-adobe-indesign/#

 

Note: did not test the script in recent versions of InDesign.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Community Expert
Apr 24, 2025 9:23 AM UTC

See if this works

app.activeDocument.colorSettings.rgbWorkingSpace = "sRGB IEC61966-2.1";

 

*edit*

Oh - I don't think it does work - I can't find a direct way to access the settings in scripts, certainly not easily find it. 

 

Might need more info on the workflow and expectations here - what are you trying to do @dt0245d3009278 

Translate
Known Participant
Apr 24, 2025 9:27 AM UTC

Error shows 'Does not support the property or method 'colorSettings' for document.

 

I've tried app.activeDocument.rgbProfile = "Adobe RGB (1998)",  This code changes in source space not in Destination space.

Translate