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

batch processer for the CTLP to Tiff conversion

Explorer ,
Mar 11, 2019 Mar 11, 2019

Dear Friends

I need batch processer for the CTLP to Tiff conversion Script. I got one script from the Esko but is working in individual images but I want to create a bunch of CTLP image in one folder. It needs to convert.

Below script for your reference.

/**

* Sample scripts are provided as-is with no warranty of fitness for a particular purpose.

* These scripts are solely intended to demonstrate techniques for accomplishing common tasks.

* Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.

*

* It is up to the user to verify that his intended use of the offered automation functionality is compliant with any third party license agreement and/or other restrictions applicable to any non-Esko products.

*/

inputs = ["~/Desktop/ctlp/Bear_Transparency_CT.ct"]

outputFolder = "~/Desktop"

for (i=0;i<inputs.length;i++)

{

    var fileRef = new File(inputs);

    openctlp(fileRef);

    docRef = app.activeDocument;

    outputFile = new File(outputFolder + "/"+ fileRef.name);

    var TiffSaveOptions = new TiffSaveOptions();

    TiffSaveOptions.transparency = true;

    TiffSaveOptions.embedColorProfile = true;

    docRef.saveAs(outputFile, TiffSaveOptions, true, Extension.LOWERCASE);

    docRef.close(SaveOptions.DONOTSAVECHANGES);

}

function openctlp()

{

var idOpn = charIDToTypeID( "Opn " );

    var desc35 = new ActionDescriptor();

    var idnull = charIDToTypeID( "null" );

    desc35.putPath( idnull, fileRef );

    var idAs = charIDToTypeID( "As  " );

        var desc36 = new ActionDescriptor();

        var idktra = charIDToTypeID( "ktra" );

        desc36.putBoolean( idktra, true );

        var idkgrd = charIDToTypeID( "kgrd" );

        desc36.putBoolean( idkgrd, false );

        var idisol = charIDToTypeID( "isol" );

        desc36.putInteger( idisol, 0 );

    var idEskoEskoCTLPFormat = stringIDToTypeID( "Esko Esko CT/LP Format" );

    desc35.putObject( idAs, idEskoEskoCTLPFormat, desc36 );

executeAction( idOpn, desc35, DialogModes.NO );

}

TOPICS
Scripting
303
Translate
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
Community Expert ,
Mar 11, 2019 Mar 11, 2019
LATEST

Are you sure that this really is an illustrator script?

IMO this is more like Photoshops AM-Code.

Translate
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