Hi,
So my issue is that I'm trying to script a change from one profile to another. Here is a snippet:
app.activeDocument.convertProfile("6C ColorBurst - KonaUltra225-20150819.icm" , Intent.RELATIVECOLORIMETRIC)
Please assume that the file opens correctly and everything loads as it should. This will be an addition to a script that has been tried and tested for years now. I'm running this on Windows 7 with an up to date patch of PS CC 2015.
The error that I get is:
Error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
- The parameters for command "Convert to Profile" are not currently valid: on line 284
What I think is happening is that it's failing because I'm trying to convert from RGB -> Multi-channel profile. If I substitute any other profile (RGB, CMYK, GRAY) in place of mine it works without issue. I tried to do the same operation through the software by hand it works without issue so I know that the profile is good. I used the script listener to capture the code that was created in this process and it too fails with the same error. Here is that code:
var idconvertToProfile = stringIDToTypeID( "convertToProfile" );
var desc89 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref6 = new ActionReference();
var idDcmn = charIDToTypeID( "Dcmn" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref6.putEnumerated( idDcmn, idOrdn, idTrgt );
desc89.putReference( idnull, ref6 );
var idT = charIDToTypeID( "T " );
desc89.putString( idT, """6C ColorBurst - KonaUltra225-20150819.icm""" );
var idInte = charIDToTypeID( "Inte" );
var idInte = charIDToTypeID( "Inte" );
var idClrm = charIDToTypeID( "Clrm" );
desc89.putEnumerated( idInte, idInte, idClrm );
var idMpBl = charIDToTypeID( "MpBl" );
desc89.putBoolean( idMpBl, false );
var idDthr = charIDToTypeID( "Dthr" );
desc89.putBoolean( idDthr, false );
var idsdwM = charIDToTypeID( "sdwM" );
desc89.putInteger( idsdwM, 5 );
executeAction( idconvertToProfile, desc89, DialogModes.NO );
I've triple checked my spelling, tried it with or without the .icm. The file name that shows up in the Adobe convert to profile tab is the exact file name of the profile I'm trying to use. I honestly am scratching my head and thinking that this is just an issue with Photoshop in general. I would appreciate any kind of advice on things to try.