Saving a copy of active AI CS 4 document as EPS Illustrator 8

I have Illustrator CS4 (Windows version) and I need to save a copy of a currently open (active?) document (there could be multiple open documents but I don't need the script to cycle thru them, I just need it to work on the active document.) in Illustrator 8 eps format. The file needs to be saved in situ with the same name only extension should be .eps instead .ai.
How can this be done with JavaScript?
Action script records a specific path, so all files end up in the same directory as the file used for trecording the script step regardless of where the files are actually  located, so I hope that a JS can be used for this purpose.
The scripts I have found so far on the forum are much more sophisticated than what I need and seem to prompt user for the directory. I don't want the script to prompt user for anything.
Any help wit this will be greatly appreciated.
Thanks
franK

Im not all that familiar with the PC stuff but this may work for you…
#target illustrator
function saveAsAI8()
     if (app.documents.length == 0) return;
     // Set a variable to the active document
     var docRef = app.activeDocument;
     // Check and strip off old extension
     var docName = docRef.name;
     var nameString = '';
     var extOffset = docName.lastIndexOf('.');
     if (extOffset == -1) {
          nameString = docName;
     } else {
          nameString = docName.substr(0, extOffset);
     // Get the name to the files parent
     var docPath = docRef.path.fsName;
     // Set up a save options object
     var epsOptions = new EPSSaveOptions();
     epsOptions.cmykPostscript = true;
     epsOptions.compatability = Compatibility.ILLUSTRATOR8;
     epsOptions.compatibleGradientPrinting = true;
     epsOptions.embedAllFonts = true;
     epsOptions.embedLinkedFiles = true;
     epsOptions.flattenOutput = OutputFlattening.PRESERVEAPPEARANCE;
     epsOptions.includeDocumentThumbnials = true;
     epsOptions.overprint = PDFOverprint.PRESERVEPDFOVERPRINT;
     epsOptions.postScript = EPSPostScriptLevelEnum.LEVEL2;
     epsOptions.preview = EPSPreview.COLORTIFF;
     // Make file object to new location
     var saveFile = new File(docPath+'/'+nameString+'.eps');
     // Use save as method passing new file path & options
     docRef.saveAs(saveFile, epsOptions);
saveAsAI8();

Similar Messages

  • In Illustrator, I have a saved artwork, then I'm saving a copy as PDF, as usual.  After I keep the AI file open, making some modifications which I don't want to save, so I close the file and click "Don't Save".  Even though I clicked that, the file's modi

    In Illustrator, I have a saved artwork, then I'm saving a copy as PDF, as usual.
    After I keep the AI file open, making some modifications which I don't want to save, so I close the file and click "Don't Save".
    Even though I clicked that, the file's modification time is changing.
    (The modifications I made are not there, so it's not really saving but why the date is changing then?)
    Please find the cause of it! Thank you!

    All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.

  • Item translations are not saved for copied page

    Hello,
    item translations are not saved for copied page. Is it expected?

    Hello,
    >> item translations are not saved for copied page. Is it expected?
    I’m not sure what you mean by not saved, but if you expect to copy a current translated page into a new page, and inherent the translation in the new page, the answer is NO, it’s not saved.
    Adding a new page to your application, even by copying an existing page, is a major change in your primary language application, which create multiple new independent elements in your application (after the page has been copied, there isn’t any link between it and the original page). You need to re-seed the primary application, export a new XLIFF file, and translate the new <trans-unit> that were added to it.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Copy paste activity should be avoided.

    Hi Freinds
    This has been discussed many a times in the forum and many members have already requested not to copy and paste the answers posted by other members.
    But, unfortunately it is not followed. Though many-a -times I have seen this copy paste activities but I have not reacted thinking that members will not repeate the same activity in future.
    To-day, I found that Mr. Sanil Kailash Bhandari has copied the answer posted by me on 19th Nov 2008 and pasted in this forum (Billing issue question).
    Atleast you could have changed the language Mr Bhandari and you could have interpreted in your own word, beacuse it is nothing like that, I have invented something new.
    Many members can easily answer the same question but we should answer in our own language and it gives real pleasure if our (own) answer has solved somebody's problem and you will never get that
    satisfaction from copy paste activity.
    Once again I will request Mr.Lakshmipati to kindly take care of this typa of activities.

    Thank you Mr.Lakshmipati for immediately responding to my concern !
    Infact,it is a concern of the whole forum, I feel.
    I feel that, instead of pasteing same answers, we should come out with more correct and varified answers next times.
    At the same time, I request the members to first search the forum before posting a question and if not found the satisfactory answer then only post the question in a new thread.
    In the process, we need not have to request the members to avoid copy-paste activities and secondly a  number of meaningful  and new suggestions will be posted by different contributors.
    Dr.Lakshmipati, I am not sending the link and details to you as I do not want that any disciplinary action should be taken on any of our member.
    My sole purpose was to  make an appeal to all of us to avoid this type of activity.
    Regards
    Pradyumna

  • Refrain user to copy network activity

    Hi Experts ,
    I have a very unusual requirement and need to your help to solve it.
    REQUIRMENT : We have a project in CLSD status , and network and its activities are also in CLSD status. Now , if a user selects a network or network activity in the same project (CLSD Status) , and right clicks on it , he is able to copy that activity and paste that again into the project.
    We have to stop the user from copying a network or activity of any closed project.
    Please suggest how to overcome this issue ...
    Thanks
    Ajay

    Hi Ajay,
    As a standard SAP you can't create the networks even after TECO itself ( hence not possible even after CLSD as well)..Hence seems there is some problem with your system..  Pls check.
    Regards
    K Ramaiah

  • The document could not be saved. There was a problem reading this document (114).

    After adding some sticky notes to a PDF in Adobe Reader i went to save it and it comes up with "The document could not be saved. There was a problem reading this document (114)." and will not let me save it. Please can you advise if there is anyway of saving this document with the sicky notes in?

    The problem is most likely document corruption. Try to work on a new copy from the original source.

  • Script to copy Layer/Group to another Open Document?

    Hi, I know this topic has been covered many times before. But to clarify, here's what I'm wondering:
    Copy the active layer/group to another open document in Photoshop. The simple way is to go to "Layer/Duplicate Layer..." . But this is very tedious. For starters, when you choose that method, and then select the document that you'd like to copy to via the pull-down menu, it successfully copies the layer/group to that document, but it doesn't auto-switch (activate) to the document it was just copied to. You have to hit "Ok", and then manually search through the open documents list via (Window/*choose your document*) to get there. This is a nightmare when you're trying to do this many times.
    Here is what I am wondering:
    Is it possible to:
    a) copy the active layer/group to the clipboard/memory
    b) switch to another existing document in Photoshop *via a custom menu* which shows all existing documents
    c) once switched to the new existing document, paste that layer/group from the clipboard into that document
    ..is that possible?
    At the very least, are there any scripts that anyone knows of that allows the user to switch between existing documents via a custom menu instead of going to Window/*choose your document* ?

    This might help with Groups and some other kinds of Layers.
    But it takes the easy route with the target file by using the name to identify it.
    // some amendments to pixxxelschubser’s code;
    // 2014, use it at your own risk;
    #target photoshop
    var aDoc = app.activeDocument;
    var AllDocs = app.documents;
    var actLay = aDoc.activeLayer;
    var theIndex = getSelectedLayersIdx();
    if (AllDocs.length > 1) {
    var itemDoc = null;
    var win = new Window("dialog","Copy the active layer");
    this.windowRef = win;
    win.Txt1 = win.add ("statictext", undefined, "Paste in which open document?");
    win.NewList=win.add ("dropdownlist", undefined)
    for (var m = 0; m < AllDocs.length; m++) {
    win.NewList.add("item", AllDocs[m].name)
    win.NewList.selection = 0;
    itemDoc = win.NewList.selection.index;
    win.cancelBtn = win.add("button", undefined, "Abbruch");
    win.quitBtn = win.add("button", undefined, "Ok");
    win.defaultElement = win.quitBtn;
    win.cancelElement = win.cancelBtn;
    win.quitBtn.onClick = function() {
    win.close();
    win.NewList.onChange= function () {
        itemDoc = win.NewList.selection.index;
        return itemDoc;
    win.show();
    // duplicate layers;
    for (var n = 0; n < theIndex.length; n++) {
    duplicateLayer (theIndex[n], String(win.NewList.selection))
    app.refresh();
    } else {
        alert ("No other documents open")
    ////// duplicate layer //////
    function duplicateLayer (theIndex, theDoc) {
    // =======================================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc7 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
        ref3.putIndex(charIDToTypeID("Lyr "), theIndex);
        desc7.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T  " );
            var ref4 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref4.putName( idDcmn, theDoc );
        desc7.putReference( idT, ref4 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc7.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc7, DialogModes.NO );
    ////// by paul mr;
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
            desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                  activeDocument.backgroundLayer;
                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
          }else{
            var ref = new ActionReference();
            ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
            ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
            try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
            }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;

  • MS Word: This file is read-only. To save a copy, click OK, and give the document a new name in the save dialog box.

    This is not a question. I believe I've found a new issue and the fix for it.
    The situation:
    A brand new iMac 27" running Yosemite 10.10.1
    MacMini server running 10.8.5 server.
    The issue:
    Client on iMac trying to work on MS Word documents stored on server was requiring him to save the documents to his desktop and then copy them back to the folder on the server. The exact error message was, "This file is read-only. To save a copy, click OK, and give the document a new name in the save dialog box."
    The issue is unique to this computer in an office of 10 client computers and three servers.
    Attempted fixes:
    Verified that the ".Temporaryitems" folder existed and the permissions were set properly.
    Repaired permissions on the client and the network share.
    Definitive fix:
    By default, Yosemite 10.10.1 uses SMB for connecting file shares. When I overrode the default and switched to AFP protocol, the issue went away.
    I hope this helps someone else.
    Rob

    That was it. What an operating system. It is very helpful to view files you are looking for. But if you have preview on you cannot save files.

  • Problem with saving a pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21).

    Need advice on a saving file issue. I'm having problem with saving a .pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21). This is new as this error message just recently started to pop-up.

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • 11.0.10 Update Issue -  Problem saving documents - getting message "This document could not be saved.  There was a problem reading this document (21)."  The PDF documents are being created by Esker VSIFax and the problem is only occuring with updated vers

    Our IBM Unix system uses a program called VSIFax (Esker) to create PDF documents such as invoices.  Users that have updated to Acrobat version 11.0.10 can open the PDF but then when trying to save the document the get a message "This document could not be saved.  There was a problem reading this document (21)."  The problem is only occuring with updated version 11.0.10 (11.0.9 works fine).

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Is it possible to copy formats and styles from one document to another?

    Is it possible to copy formats and styles from one document to another?
    Or use a commen styledocument as a masterdocument?

    Only by creating a template with what you want.
    Apple has removed the ability to import styles inPAges 5 along with almost 100 other features.
    Peter

  • Copy single master page from one document to another?

    The answer to a previously posted question seems to involve creating a document differently (than I had). A lot of work went into the creation of the master pages in the original document which I will now need to recreate in the new document. Is there a way I can copy one master page from one document to another?
    Many thanks,
    Theresa

    There are a number of ways to do this.
    Create a copy of the document you want to copy the Master page from. Delete all pages except for the one you want (but you have to leave Right and Left alone as FM must always have these two pages available).
    Open the new document and the one that you want to import the master pages from.
    In the new document:
    Import from Document: (select the document with the Master Page that you want)
    then
    File > Import > Formats
    and select Page Layouts only.
    Note that Right/Left always come along for the ride.
    Alternative and probably best way to get a single Master Page:
    In new document, add a new Master Page and select "Empty".
    In the old document, on the desired Master Page, Select All on page (ctrl+A) and then copy (ctrl+v).
    In the new document on the new master page, paste (ctrl+v) to add the layout. Note: you may need to rotate the page first  if it isn't in the same orientation as in the old document.

  • How do I copy a page from one pdf  document to another?

    I am a newbe!

    That was easy.Thank you.
         Re: How do I copy a page from one pdf document to another?
    created by George Johnson in Creating, Editing & Exporting PDFs - View the full discussion
    If you open both documents, you can drag a page from the Pages panel (on the left of the window) of one document and drop it into the Pages panel of another.
    You can also extract one or more pages from a document to create a new document, and then insert the pages from this new document into another. In Acrobat 11 you 'd do this by doing:
    Tools > Pages > Extract
    and then:
    Tools > Pages > Insert from File
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6163925#6163925
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6163925#6163925
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6163925#6163925. In the Actions box on the right, click the Stop Email Notifications link .
    Start a new discussion in Creating, Editing & Exporting PDFs at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0 .

  • Does anyone know how to copy and paste from a pdf document?

    I am trying to copy and paste from a pdf document to put on facebook, but I cannot highlight the text I want to copy.
    Any suggestions???

    It is a generated pdf doc. I can highlight the text, but as soon as I let go of the mouse button, the highlighting disappears. If I right-click the mouse, there is no copy/past option. Only a select, zoom and marque tool option.

  • Linking between Activity network with Billing Document

    Hi Gurus,
        I have a requirement that I need to link between Activity, network with Billing Document number. By standard we can link only WBS-Element and Billing Document Number. How can I link between Activity, Network with Billing Doc. I want to develope a report for this.
    Kindly help me regarding this. I need some clue regarding this.
    Thanks,
    Ravi

    revenue can only be posed to WBS
    networks are meant for cost capture and scheduling
    so as per std sap what you want is not possible

Maybe you are looking for