Skip to main content
Known Participant
April 24, 2025
Question

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

  • April 24, 2025
  • 3 replies
  • 544 views

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

 

 

3 replies

Robert at ID-Tasker
Legend
April 24, 2025

@dt0245d3009278 

 

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

 

Community Expert
April 24, 2025

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 )

Community Expert
April 24, 2025

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 

Known Participant
April 24, 2025

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.