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

javascript export png with embedded color profile

Community Beginner ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

Dear all,

i have my .jsx script that works good until the 23.5.5 version of Photoshop.

I work on a mac mini with osx 12.6.3.

I've downloaded the last version on Photoshop (24.3.0),but with this version the script works but didn't include the color profile,only the color work space.

Did any one get the same issue?

 

thank you so much

Sergio

 

Here the piece code:

function exportToPngLow(docRef){
     
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 4;
    pngOpts.interlaced = false;
    pngOpts.PNG8 = false
    pngOpts.transparency = true
    pngOpts.includeProfile = true
   
    var findInNameFront = "front";
    var isDetailFront = (docRef.name.toLowerCase().indexOf(findInNameFront.toLowerCase()) > -1);
    var findInNameSide = "side";
    var isDetailSide = (docRef.name.toLowerCase().indexOf(findInNameSide.toLowerCase()) > -1)
    var findInNameBack = "Back";
    var isDetailBack = (docRef.name.toLowerCase().indexOf(findInNameBack.toLowerCase()) > -1)

    if (isDetailFront) {
        var fullnewNameFront = docname + '_Front' + '_Web.png'
        docRef.saveAs((new File([target + "/" + docname] + "/" +  fullnewNameFront)), pngOpts, true);
    }
    if (isDetailSide){
        var fullnewNameSide = docname + '_Side' + '_Web.png'
        docRef.saveAs((new File([target + "/" + docname] + "/" +  fullnewNameSide)), pngOpts, true);

    }
    if (isDetailBack){
        var fullnewNameBack = docname + '_Back' + '_Web.png'
        docRef.saveAs((new File([target + "/" + docname] + "/" +  fullnewNameBack)), pngOpts, true);
    }
    else {
}
}

 

TOPICS
macOS

Views

809

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
Adobe
New Here ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

thanks for the awesome information, I'm also facing the same issue.

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 ,
Apr 26, 2023 Apr 26, 2023

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
LEGEND ,
Mar 28, 2023 Mar 28, 2023

Copy link to clipboard

Copied

Is there a profile assigned before you run the script?

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 ,
Mar 29, 2023 Mar 29, 2023

Copy link to clipboard

Copied

Hi Lumigraphics,

i've double checked the PSD,and yes it is assigned.

I spoke with the live chat of Adobe,they told that this can be an issue and that there is no documentation on Github about the last version of PS.

At the moment i keep 2 different version of PS..

If anyone knows....

Thank you

 

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 ,
Mar 29, 2023 Mar 29, 2023

Copy link to clipboard

Copied

If I recall correctly one needs to save (a copy) as png to be able to embed the ICC Profile, Safe for Web won’t do that (anymore). 

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 ,
Mar 29, 2023 Mar 29, 2023

Copy link to clipboard

Copied

I was triyng other solution,and i notice that this happen only with the Silicon version and not with the Intel version.

Tomorrow i'll check again.

Sergio

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 ,
Jul 04, 2023 Jul 04, 2023

Copy link to clipboard

Copied

Dear All,

i'm happy to say that i find a solution to the problem of the color profile on PNG.

On PS 24.6.0 i use this code to export the png with both color space and color profile.It's the scripting listener of save for web..Another strange thing i saw triyng to fix this problem is that the scripting listener doesn't "listen" to : file/export/export-as

 

Thank you for your support.

Sergio

function exportToPngListener(docRef , docname) {

    var idexport = stringIDToTypeID( "export" );
    var desc249 = new ActionDescriptor();
    var idusing = stringIDToTypeID( "using" );
        var desc250 = new ActionDescriptor();
        var idOpspsp = charIDToTypeID( "Op  " );
        var idSWOp = charIDToTypeID( "SWOp" );
        var idOpSa = charIDToTypeID( "OpSa" );
        desc250.putEnumerated( idOpspsp, idSWOp, idOpSa );
        var idDIDr = charIDToTypeID( "DIDr" );
        desc250.putBoolean( idDIDr, true );
        var idin = stringIDToTypeID( "in" );
        //desc250.putPath( idin, new File( [target + "/" + docname] + "/" ) );
        desc250.putPath( idin, new File( [target + "/" + docname] + "/"  ) );
        var idformat = stringIDToTypeID( "format" );
        var idIRFm = charIDToTypeID( "IRFm" );
        var idPNtwofour = charIDToTypeID( "PN24" );
        desc250.putEnumerated( idformat, idIRFm, idPNtwofour );
        var idinterfaceIconFrameDimmed = stringIDToTypeID( "interfaceIconFrameDimmed" );
        desc250.putBoolean( idinterfaceIconFrameDimmed, false );
        var idtransparency = stringIDToTypeID( "transparency" );
        desc250.putBoolean( idtransparency, true );
        var idMttsp = charIDToTypeID( "Mtt " );
        desc250.putBoolean( idMttsp, true );
        var idEICC = charIDToTypeID( "EICC" );
        desc250.putBoolean( idEICC, true );
        var idMttR = charIDToTypeID( "MttR" );
        desc250.putInteger( idMttR, 255 );
        var idMttG = charIDToTypeID( "MttG" );
        desc250.putInteger( idMttG, 255 );
        var idMttB = charIDToTypeID( "MttB" );
        desc250.putInteger( idMttB, 255 );
        var idHScl = charIDToTypeID( "HScl" );
        var idpercentUnit = stringIDToTypeID( "percentUnit" );
        desc250.putUnitDouble( idHScl, idpercentUnit, 100 );
        var idVScl = charIDToTypeID( "VScl" );
        var idpercentUnit = stringIDToTypeID( "percentUnit" );
        desc250.putUnitDouble( idVScl, idpercentUnit, 100 );
        var idSHTM = charIDToTypeID( "SHTM" );
        desc250.putBoolean( idSHTM, false );
        var idSImg = charIDToTypeID( "SImg" );
        desc250.putBoolean( idSImg, true );
        var idSWsl = charIDToTypeID( "SWsl" );
        var idSTsl = charIDToTypeID( "STsl" );
        var idSLAl = charIDToTypeID( "SLAl" );
        desc250.putEnumerated( idSWsl, idSTsl, idSLAl );
        var idSWch = charIDToTypeID( "SWch" );
        var idSTch = charIDToTypeID( "STch" );
        var idCHDc = charIDToTypeID( "CHDc" );
        desc250.putEnumerated( idSWch, idSTch, idCHDc );
        var idSWmd = charIDToTypeID( "SWmd" );
        var idSTmd = charIDToTypeID( "STmd" );
        var idMDCC = charIDToTypeID( "MDCC" );
        desc250.putEnumerated( idSWmd, idSTmd, idMDCC );
        var idohXH = charIDToTypeID( "ohXH" );
        desc250.putBoolean( idohXH, false );
        var idohIC = charIDToTypeID( "ohIC" );
        desc250.putBoolean( idohIC, true );
        var idohAA = charIDToTypeID( "ohAA" );
        desc250.putBoolean( idohAA, true );
        var idohQA = charIDToTypeID( "ohQA" );
        desc250.putBoolean( idohQA, true );
        var idohCA = charIDToTypeID( "ohCA" );
        desc250.putBoolean( idohCA, false );
        var idohIZ = charIDToTypeID( "ohIZ" );
        desc250.putBoolean( idohIZ, true );
        var idohTC = charIDToTypeID( "ohTC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc250.putEnumerated( idohTC, idSToc, idOCzerothree );
        var idohAC = charIDToTypeID( "ohAC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc250.putEnumerated( idohAC, idSToc, idOCzerothree );
        var idohIn = charIDToTypeID( "ohIn" );
        desc250.putInteger( idohIn, -1 );
        var idohLE = charIDToTypeID( "ohLE" );
        var idSTle = charIDToTypeID( "STle" );
        var idLEzerothree = charIDToTypeID( "LE03" );
        desc250.putEnumerated( idohLE, idSTle, idLEzerothree );
        var idohEn = charIDToTypeID( "ohEn" );
        var idSTen = charIDToTypeID( "STen" );
        var idENzerozero = charIDToTypeID( "EN00" );
        desc250.putEnumerated( idohEn, idSTen, idENzerozero );
        var idolCS = charIDToTypeID( "olCS" );
        desc250.putBoolean( idolCS, false );
        var idolEC = charIDToTypeID( "olEC" );
        var idSTst = charIDToTypeID( "STst" );
        var idSTzerozero = charIDToTypeID( "ST00" );
        desc250.putEnumerated( idolEC, idSTst, idSTzerozero );
        var idolWH = charIDToTypeID( "olWH" );
        var idSTwh = charIDToTypeID( "STwh" );
        var idWHzeroone = charIDToTypeID( "WH01" );
        desc250.putEnumerated( idolWH, idSTwh, idWHzeroone );
        var idolSV = charIDToTypeID( "olSV" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc250.putEnumerated( idolSV, idSTsp, idSPzerofour );
        var idolSH = charIDToTypeID( "olSH" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc250.putEnumerated( idolSH, idSTsp, idSPzerofour );
        var idolNC = charIDToTypeID( "olNC" );
            var list4 = new ActionList();
                var desc251 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerozero = charIDToTypeID( "NC00" );
                desc251.putEnumerated( idncTp, idSTnc, idNCzerozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc251 );
                var desc252 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc252.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc252 );
                var desc253 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwoeight = charIDToTypeID( "NC28" );
                desc253.putEnumerated( idncTp, idSTnc, idNCtwoeight );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc253 );
                var desc254 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc254.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc254 );
                var desc255 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc255.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc255 );
                var desc256 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc256.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc256 );
        desc250.putList( idolNC, list4 );
        var idobIA = charIDToTypeID( "obIA" );
        desc250.putBoolean( idobIA, false );
        var idobIP = charIDToTypeID( "obIP" );
        desc250.putString( idobIP, "" );
        var idobCS = charIDToTypeID( "obCS" );
        var idSTcs = charIDToTypeID( "STcs" );
        var idCSzeroone = charIDToTypeID( "CS01" );
        desc250.putEnumerated( idobCS, idSTcs, idCSzeroone );
        var idovNC = charIDToTypeID( "ovNC" );
            var list5 = new ActionList();
                var desc257 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzeroone = charIDToTypeID( "NC01" );
                desc257.putEnumerated( idncTp, idSTnc, idNCzeroone );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc257 );
                var desc258 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwozero = charIDToTypeID( "NC20" );
                desc258.putEnumerated( idncTp, idSTnc, idNCtwozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc258 );
                var desc259 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerotwo = charIDToTypeID( "NC02" );
                desc259.putEnumerated( idncTp, idSTnc, idNCzerotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc259 );
                var desc260 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc260.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc260 );
                var desc261 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerosix = charIDToTypeID( "NC06" );
                desc261.putEnumerated( idncTp, idSTnc, idNCzerosix );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc261 );
                var desc262 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc262.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc262 );
                var desc263 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc263.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc263 );
                var desc264 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc264.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc264 );
                var desc265 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwotwo = charIDToTypeID( "NC22" );
                desc265.putEnumerated( idncTp, idSTnc, idNCtwotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc265 );
        desc250.putList( idovNC, list5 );
        var idovCM = charIDToTypeID( "ovCM" );
        desc250.putBoolean( idovCM, false );
        var idovCW = charIDToTypeID( "ovCW" );
        desc250.putBoolean( idovCW, false );
        var idovCU = charIDToTypeID( "ovCU" );
        desc250.putBoolean( idovCU, true );
        var idovSF = charIDToTypeID( "ovSF" );
        desc250.putBoolean( idovSF, true );
        var idovCB = charIDToTypeID( "ovCB" );
        desc250.putBoolean( idovCB, true );
        var idovSN = charIDToTypeID( "ovSN" );
        desc250.putString( idovSN, "images" );
    var idSaveForWeb = stringIDToTypeID( "SaveForWeb" );
    desc249.putObject( idusing, idSaveForWeb, desc250 );
executeAction( idexport, desc249, DialogModes.NO );
}

 

 

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 ,
Jul 04, 2023 Jul 04, 2023

Copy link to clipboard

Copied

It's a current limitation of Export As that it can't be recorded into an Action or ScriptingListener. Adobe are aware of this and have set the expectation that one day this limitation may be removed.

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 ,
Jul 04, 2023 Jul 04, 2023

Copy link to clipboard

Copied

It appears that you're experiencing an issue with your JavaScript script for exporting PNG files with an embedded color profile in Photoshop. The problem you're facing is that the color profile is not being included in the exported files when using Photoshop version 24.3.0.

Unfortunately, I don't have access to the specific version of Photoshop you mentioned (24.3.0) as my knowledge cutoff is in September 2021. However, I can provide some general guidance that may help you troubleshoot the issue.

  1. Update your script: Adobe regularly updates Photoshop, and new versions may introduce changes or improvements to the scripting API. Ensure that your script is up to date and compatible with the version of Photoshop you're using. Check Adobe's scripting documentation or community forums for any specific changes related to exporting PNG files or color profiles in the version you're working with.

  2. Review the PNGSaveOptions: Confirm that the includeProfile property is still supported and functions as intended in the version of Photoshop you're using. There might be changes or alternative approaches to include the color profile in the PNGSaveOptions. Consult the Photoshop scripting documentation for details about the available options and their compatibility with the version you're using.

  3. Test with different color profiles: Try exporting PNG files with different color profiles to determine if the issue is specific to a particular profile. This can help identify whether it's a problem with the color profile itself or a broader issue with the script or Photoshop version.

  4. Reach out to Adobe support or forums: If you haven't already, consider contacting Adobe support or visiting their community forums to seek assistance from other users or Adobe staff. They might be able to provide more specific guidance or identify any known issues related to exporting PNG files with color profiles in the version you're using.

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 ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

LATEST

Hi ,

 

Thank you for your help.I tried to follow your indication.

I'm not a developer and so all this changes create a lot of confusion for me.

In case anyone need i found a working solution on PS(24.6.0).

With this i'm able to use the export for web for this needs:

- assign both color profile and color space

- change location and name of the exported file

 

Here the code i use

 

function exportToPngWeb (docRef , docname ) {

var idexport = stringIDToTypeID( "export" );
    var desc225 = new ActionDescriptor();
    var idusing = stringIDToTypeID( "using" );
        var desc226 = new ActionDescriptor();
        var idOpspsp = charIDToTypeID( "Op  " );
        var idSWOp = charIDToTypeID( "SWOp" );
        var idOpSa = charIDToTypeID( "OpSa" );
        desc226.putEnumerated( idOpspsp, idSWOp, idOpSa );
        var idDIDr = charIDToTypeID( "DIDr" );
        desc226.putBoolean( idDIDr, true );
        var idin = stringIDToTypeID( "in" );
        desc226.putPath( idin, new File(“your Path”));
        var idovFN = charIDToTypeID( "ovFN" );
        desc226.putString( idovFN, “ the name you need or the name of the image") );
        var idformat = stringIDToTypeID( "format" );
        var idIRFm = charIDToTypeID( "IRFm" );
        var idPNtwofour = charIDToTypeID( "PN24" );
        desc226.putEnumerated( idformat, idIRFm, idPNtwofour );
        var idinterfaceIconFrameDimmed = stringIDToTypeID( "interfaceIconFrameDimmed" );
        desc226.putBoolean( idinterfaceIconFrameDimmed, false );
        var idtransparency = stringIDToTypeID( "transparency" );
        desc226.putBoolean( idtransparency, true );
        var idMttsp = charIDToTypeID( "Mtt " );
        desc226.putBoolean( idMttsp, true );
        var idEICC = charIDToTypeID( "EICC" );
        desc226.putBoolean( idEICC, true );
        var idMttR = charIDToTypeID( "MttR" );
        desc226.putInteger( idMttR, 255 );
        var idMttG = charIDToTypeID( "MttG" );
        desc226.putInteger( idMttG, 255 );
        var idMttB = charIDToTypeID( "MttB" );
        desc226.putInteger( idMttB, 255 );
        var idSHTM = charIDToTypeID( "SHTM" );
        desc226.putBoolean( idSHTM, false );
        var idSImg = charIDToTypeID( "SImg" );
        desc226.putBoolean( idSImg, true );
        var idSWsl = charIDToTypeID( "SWsl" );
        var idSTsl = charIDToTypeID( "STsl" );
        var idSLAl = charIDToTypeID( "SLAl" );
        desc226.putEnumerated( idSWsl, idSTsl, idSLAl );
        var idSWch = charIDToTypeID( "SWch" );
        var idSTch = charIDToTypeID( "STch" );
        var idCHDc = charIDToTypeID( "CHDc" );
        desc226.putEnumerated( idSWch, idSTch, idCHDc );
        var idSWmd = charIDToTypeID( "SWmd" );
        var idSTmd = charIDToTypeID( "STmd" );
        var idMDCC = charIDToTypeID( "MDCC" );
        desc226.putEnumerated( idSWmd, idSTmd, idMDCC );
        var idohXH = charIDToTypeID( "ohXH" );
        desc226.putBoolean( idohXH, false );
        var idohIC = charIDToTypeID( "ohIC" );
        desc226.putBoolean( idohIC, true );
        var idohAA = charIDToTypeID( "ohAA" );
        desc226.putBoolean( idohAA, true );
        var idohQA = charIDToTypeID( "ohQA" );
        desc226.putBoolean( idohQA, true );
        var idohCA = charIDToTypeID( "ohCA" );
        desc226.putBoolean( idohCA, false );
        var idohIZ = charIDToTypeID( "ohIZ" );
        desc226.putBoolean( idohIZ, true );
        var idohTC = charIDToTypeID( "ohTC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc226.putEnumerated( idohTC, idSToc, idOCzerothree );
        var idohAC = charIDToTypeID( "ohAC" );
        var idSToc = charIDToTypeID( "SToc" );
        var idOCzerothree = charIDToTypeID( "OC03" );
        desc226.putEnumerated( idohAC, idSToc, idOCzerothree );
        var idohIn = charIDToTypeID( "ohIn" );
        desc226.putInteger( idohIn, -1 );
        var idohLE = charIDToTypeID( "ohLE" );
        var idSTle = charIDToTypeID( "STle" );
        var idLEzerothree = charIDToTypeID( "LE03" );
        desc226.putEnumerated( idohLE, idSTle, idLEzerothree );
        var idohEn = charIDToTypeID( "ohEn" );
        var idSTen = charIDToTypeID( "STen" );
        var idENzerozero = charIDToTypeID( "EN00" );
        desc226.putEnumerated( idohEn, idSTen, idENzerozero );
        var idolCS = charIDToTypeID( "olCS" );
        desc226.putBoolean( idolCS, false );
        var idolEC = charIDToTypeID( "olEC" );
        var idSTst = charIDToTypeID( "STst" );
        var idSTzerozero = charIDToTypeID( "ST00" );
        desc226.putEnumerated( idolEC, idSTst, idSTzerozero );
        var idolWH = charIDToTypeID( "olWH" );
        var idSTwh = charIDToTypeID( "STwh" );
        var idWHzeroone = charIDToTypeID( "WH01" );
        desc226.putEnumerated( idolWH, idSTwh, idWHzeroone );
        var idolSV = charIDToTypeID( "olSV" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc226.putEnumerated( idolSV, idSTsp, idSPzerofour );
        var idolSH = charIDToTypeID( "olSH" );
        var idSTsp = charIDToTypeID( "STsp" );
        var idSPzerofour = charIDToTypeID( "SP04" );
        desc226.putEnumerated( idolSH, idSTsp, idSPzerofour );
        var idolNC = charIDToTypeID( "olNC" );
            var list4 = new ActionList();
                var desc227 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerozero = charIDToTypeID( "NC00" );
                desc227.putEnumerated( idncTp, idSTnc, idNCzerozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc227 );
                var desc228 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc228.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc228 );
                var desc229 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwoeight = charIDToTypeID( "NC28" );
                desc229.putEnumerated( idncTp, idSTnc, idNCtwoeight );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc229 );
                var desc230 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc230.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc230 );
                var desc231 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc231.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc231 );
                var desc232 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc232.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list4.putObject( idSCnc, desc232 );
        desc226.putList( idolNC, list4 );
        var idobIA = charIDToTypeID( "obIA" );
        desc226.putBoolean( idobIA, false );
        var idobIP = charIDToTypeID( "obIP" );
        desc226.putString( idobIP, "" );
        var idobCS = charIDToTypeID( "obCS" );
        var idSTcs = charIDToTypeID( "STcs" );
        var idCSzeroone = charIDToTypeID( "CS01" );
        desc226.putEnumerated( idobCS, idSTcs, idCSzeroone );
        var idovNC = charIDToTypeID( "ovNC" );
            var list5 = new ActionList();
                var desc233 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzeroone = charIDToTypeID( "NC01" );
                desc233.putEnumerated( idncTp, idSTnc, idNCzeroone );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc233 );
                var desc234 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwozero = charIDToTypeID( "NC20" );
                desc234.putEnumerated( idncTp, idSTnc, idNCtwozero );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc234 );
                var desc235 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerotwo = charIDToTypeID( "NC02" );
                desc235.putEnumerated( idncTp, idSTnc, idNCzerotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc235 );
                var desc236 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNConenine = charIDToTypeID( "NC19" );
                desc236.putEnumerated( idncTp, idSTnc, idNConenine );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc236 );
                var desc237 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCzerosix = charIDToTypeID( "NC06" );
                desc237.putEnumerated( idncTp, idSTnc, idNCzerosix );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc237 );
                var desc238 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc238.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc238 );
                var desc239 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc239.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc239 );
                var desc240 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwofour = charIDToTypeID( "NC24" );
                desc240.putEnumerated( idncTp, idSTnc, idNCtwofour );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc240 );
                var desc241 = new ActionDescriptor();
                var idncTp = charIDToTypeID( "ncTp" );
                var idSTnc = charIDToTypeID( "STnc" );
                var idNCtwotwo = charIDToTypeID( "NC22" );
                desc241.putEnumerated( idncTp, idSTnc, idNCtwotwo );
            var idSCnc = charIDToTypeID( "SCnc" );
            list5.putObject( idSCnc, desc241 );
        desc226.putList( idovNC, list5 );
        var idovCM = charIDToTypeID( "ovCM" );
        desc226.putBoolean( idovCM, false );
        var idovCW = charIDToTypeID( "ovCW" );
        desc226.putBoolean( idovCW, false );
        var idovCU = charIDToTypeID( "ovCU" );
        desc226.putBoolean( idovCU, true );
        var idovSF = charIDToTypeID( "ovSF" );
        desc226.putBoolean( idovSF, true );
        var idovCB = charIDToTypeID( "ovCB" );
        desc226.putBoolean( idovCB, true );
        var idovSN = charIDToTypeID( "ovSN" );
        desc226.putString( idovSN, "images" );
    var idSaveForWeb = stringIDToTypeID( "SaveForWeb" );
    desc225.putObject( idusing, idSaveForWeb, desc226 );
executeAction( idexport, desc225, DialogModes.NO );
}

 

 

Thank you,

Sergio 

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