Skip navigation
Currently Being Moderated

Downsaving, Backsaving, Legacy save CS6 to CS5 batch processing

Sep 27, 2012 1:45 AM

Tags: #batch #legacy #downsaving #backsave


I have hundreds of files that I need to back save from CS6 to CS5 using the Batch process in the Actions palette. Previous attempts using Actions have resulted in the file not being backsaved, but instead just being saved again in CS6 format.

Does anybody know how to back save to CS5 in batch processing?


  • Currently Being Moderated
    Sep 27, 2012 7:19 AM   in reply to

    You could use a script. Very easy. When I get to work I'll post something.

    Mark as:
  • Currently Being Moderated
    Sep 27, 2012 9:14 AM   in reply to

    One more question. What options do you use on the Illustrator options page? PDF Compatible, Font subset, embed images?

    Mark as:
  • Currently Being Moderated
    Sep 28, 2012 8:54 AM   in reply to
    Copyright 2005 Adobe Systems Incorporated 
    All Rights Reserved 
    NOTICE:  Adobe permits you to use, modify, and 
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it.  
    If you have received this file from a source 
    other than Adobe, then your use, modification,
    or distribution of it requires the prior 
    written permission of Adobe. 
    This sample gets files specified by the user from the 
    selected folder and batch processes them and saves them 
    as PDFs in the user desired destination with the same 
    file name.
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, illustratorSaveOpts;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to AI', '~' );
    // If a valid folder is selected
    if ( sourceFolder != null )
        files = new Array();
        fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );
        // Get all files matching the pattern
        files = sourceFolder.getFiles( fileType );
        if ( files.length > 0 )
            // Get the destination to save the files
            destFolder = Folder.selectDialog( 'Select the folder where you want to save the converted AI files.', '~' );
            for ( i = 0; i < files.length; i++ )
                var optRef = new OpenOptions();
                optRef.updateLegacyText = true;
                sourceDoc =[i], DocumentColorSpace.CMYK, optRef); // returns the document object
                // Call function getNewName to get the name and file to save the ai
                targetFile = getNewName();
                // Call function getIllustratorOptions get the illustratorSaveOptions for the files
                illustratorSaveOpts = getIllustratorOptions( );
                // Save as AI
                sourceDoc.saveAs( targetFile, illustratorSaveOpts );
            alert( 'Files are saved as AI in ' + destFolder );
            alert( 'No matching files found' );
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName()
        var ext, docName, newName, saveInFile, docName;
        docName =;
        ext = '.ai'; // new extension for AI file
        newName = "";
        for ( var i = 0 ; docName[i] != "." ; i++ )
            newName += docName[i];
        newName += ext; // full AI name of the file
        // Create a file object to save the ai file
        saveInFile = new File( destFolder + '/' + newName );
        return saveInFile;
    getIllustratorOptions: Function to set the AI saving options of the 
    files using the illustratorSaveOptions object.
    function getIllustratorOptions()
        // Create the PDFSaveOptions object to set the AI options
        var illustratorSaveOpts = new IllustratorSaveOptions();
        // Setting IllustratorSaveOptions properties. 
        illustratorSaveOpts.embedLinkedFiles = true;
        illustratorSaveOpts.fontSubsetThreshold = 0.0
        illustratorSaveOpts.pdfCompatible = true
        illustratorSaveOpts.compatibility = Compatibility.ILLUSTRATOR15
        illustratorSaveOpts.embedICCProfile =  false
        return illustratorSaveOpts;



    Here's the script. Copy asd paste into a text editor and save as PLAIN text with a .jsx extension. Place it in the HD/Applications/Adobe Illustrator CS6/Presets/en_GB/Scripts folder and restart AI (or do the same before starting AI). Run it from the File/Scripts menu. Let me know if you have any problems.

    Mark as:
  • Currently Being Moderated
    Dec 13, 2012 7:51 PM   in reply to Larry G. Schneider

    Hey Larry, is it possible to get the script to look through sub-folders and to save those converted files back to the same directory where the original file was located?  Either way, thank you so much for posting your script, it's helped me to convert numerous eps files already. 

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points