Printing a work plan

Hello fellow Scripting Guys,.

I have a script that I wrote and that works very well, no problems with him but we make some changes and we need to print different art than any Art tips 1 chessboard.  How do I get printing script that never Board art is selected at the time the script is run?  Y at - it something like that.

var artBoardCount = artboardRange;
for(i=0; i < artBoardCount, i++)
{
if (artboart[i].active = true)
{
function saveFileToEPS() //  saves the file to the server as a .EPS document.
{  
    var thisDoc = app.activeDocument;
    if ( app.documents.length > 0 )
    {
        var saveName = new File ("Z:/STE2/STE2_ArtBags");
        saveOpts = new EPSSaveOptions();
        saveOpts.compatibility = Compatibility.ILLUSTRATOR13;
        saveOpts.generateThumbnails = true; 
        saveOpts.preserveEditability = true;
        
        saveOpts.artBoardClipping = true;
        saveOpts.saveMultipleArtboards = true;  

        saveOpts.artboardRange = [i]; // artboard number  
        thisDoc.saveAs( saveName, saveOpts );
    }
}

I can't figure out how to get the total number of Council art for the loop and how to know what is the currently active art jury.  The script that I run currently is lower;

//  Save the open file to the new direct to print folder as EPS with artboard enabled.

#target illustrator;

saveFileToEPS();

               var w = new Window("palette","Saved To STE Printer",undefined,{closeButton:false});
                    w.add("statictext",undefined,"File has been saved to STE Printer");
                    w.show();
                    $.sleep(1500);
                   w.close();

function saveFileToEPS() //  saves the file to the server as a .EPS document.
{  
    var thisDoc = app.activeDocument;
    if ( app.documents.length > 0 )
    {
        var saveName = new File ("Z:/STE2/STE2_ArtBags");
        saveOpts = new EPSSaveOptions();
        saveOpts.compatibility = Compatibility.ILLUSTRATOR13;
        saveOpts.generateThumbnails = true; 
        saveOpts.preserveEditability = true;
        
        saveOpts.artBoardClipping = true;
        saveOpts.saveMultipleArtboards = true;  

        saveOpts.artboardRange = "1"; // artboard # 1  
        thisDoc.saveAs( saveName, saveOpts );
    }
}

Thank you very much in advance for any help.

total number of work plan is like this:

app.activeDocument.artboards.length;

active work plan is like this:

app.activeDocument.artboards.getActiveArtboardIndex (); Please keep in mind that it is zero-based. you will need to add 1 before you enter the information in your artboardRange.

I hope this helps. =)

Tags: Illustrator

Similar Questions

  • Can I print a work plan?

    Hello

    In a project, I have three work plans for different types of flyers, but most of the time that I have to print a flyer (work plan). No matter how to set up the print dialog box, Illustrator CC 2015 wants to print all three. How to print a work plan?

    Thank you

    Robert

    This change has no effect?

  • Through a graph of work plans

    CS4. I am primarily an Illustrator and a designer logo. I do not very often booklets.

    I have a coin four pages, full bleed design, external dissemination (front and back cover) and an inner spread (pages 2 and 3). Internal dissemination will be works of art that extends from left to right on the crease. Due to printing needs and preferences of imposition of the printer, each work plan represents a page, not a spread. In other words, I have work plans for the cover page, page 2, page 3 and back, and I'll deliver four PDF pages ready for the printer to his shop to assemble.

    How to set up work plans and work through the crease inside spread? I shoot work plans (allowing the opposing purge guides overlap?) Then I place the artwork on page 2 and let it overlap page 3 or duplicate the work on pages 2 and 3?

    It is not clear how what should and will work if I submit separate pages. If I place the artwork on the work plan 2, and then produce the four separate PDF pages, page 3 will be empty? (I'm sure it's easy, I'm just inexperienced with it).

    Thank you.

    InDesign would be better at this, but I suspect you know that.

    If I use Illustrator I would be end-to-end work against each other, two plans allowing purge Guide to overlap. Then any work of art with keys be artboard will be printed on the artboard. This is why it makes no difference if you have an object that extends on both, two objects identical (one on each work plan) or anything else. An object reaches the artboard, it will print.

  • Impression of work plan - how to choose a printing (Windows)

    Print PS CC 2015 dialog box doesn't seem to be aware of the work plans. The small preview behaves as if all work plans are part of a large 'page' rather than separate pages (as in Illustrator). This is the expected behavior?

    I was hoping to use work plans and the associated images to facilitate printing on my home photo printer.

    PS 2015.0.0

    Windows 8.1

    (HP B9180) local inkjet printer

    I just added this request to our backlog. Thank you!

  • 2 work plans to print on one page?

    Hello

    Is it possible to print 2 plans to work on a single page?

    I had 45 work plans (format A5) and wanted to print on A4 paper. So I want to rotate 90 degrees work plans and put two on a page when printing. Is this possible?

    Or can I save each workplan as an image file and then put two on one page out of Illustrator?

    Yes, I know I could do new work plans (format A4) behind my wonderful work plans and then only print artboard 46-69, but then I have to move all work plans to do this.

    Then... there at - it an easy way?

    And of course, I discovered how do in the pdf file... Good blood... Hey good ^^

  • Is it possible to add notes to a work plan?

    I worked on a mobile app and I want to add more notes on each screen. Is it possible to add this type of metadata to a work plan?

    You do what DrStrik9 said by double clicking on the layer and deselect the print option.

  • Scripting languages and numbering of work plans

    Hello fellow Scripting Guys,.

    First Question:

    I know the Java scripts and I remember supporting Basic but what other languages I can script in?  Can I have the largest part of the Java script then have parts in SQL?

    Second Question:

    I know how to do a script writing text to a layer and using the position (x, y) location, but if I have several Art cards? I need to do the following:

    Look for the number total of //Some art cards files have 2 other 3 and very few will be 4.

    Take the advice number, not name art and print it lower-left (1.1) from the bottom.

    I would need to run this batch on a folder that contains subfolders of subfolders.  They are all the .ai or .pdf files and there is about 2 k files.  I have about 2-3 months to do this, but I wanted to write the script now so that I can have it done, this way I can run on pieces of files at once.

    I've never done a batch script, and I've never had to write a script that changes between the boards of the art.  I need to know how to tell Illustrator to choose a Council of art, I can create the loop cycling through all the art advice and then I can say to save, but how can I say to get the next file in the folder and repetition?

    to print the text of each work plan, you can use the function below. I have just set a variable to the text to be printed, it can so easily be changed if need be.

    I hope it's useful.

    function printToArtboards(){
        var docRef = app.activeDocument;
        var artboards = docRef.artboards;
        var layers = docRef.layers;
        app.coordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
    
        for(var a=0;a		   
  • For a 24-page document, you would use several work plans? Or another method?

    Normally, I work on the single page for printing files and lack experience with several work plans.

    Now, as part of a hobby that I conceive a set of 12 cards, each the size of an A3 (/ ~ tabloid) cut in half the long way, front and back.  So a total of 24 large pages, full text and images.  (No text running from one page to another, or anything complicated regarding alignment on all pages).

    Would you recommend doing 24 work plans into one document?  Who will be too heavy and boring, because of their size and graphic account?  Or it will work?

    Is there a better solution, apart from 24 separate files?

    Thank you very much!

    Eli

    The normal approach is to assemble the pages in InDesign.

  • I can't save 2 work plans

    Hello

    I'm struggling with a brochure I created. It is the first I've ever done, and the first time I have used more than one work plan, so I'm probably doing a lot of mistakes. Please do not hesitate to tell them everything!

    Just trying to save the work "on the web" plans in format jpeg, but when I do, I have just one side showing in the preview, as if there is only one work plan. When I record, there is only a jpeg.

    What is the correct way to do this? Screenshots attached.

    Also, I have a bleed of 3mm around the outside edge. Is this true and why on the jpeg when it does not save it also displays lower case rather than the A5 format, it should be, then quality in bulk when I zoomed in?

    Thank you

    Sally

    aloeissues.png

    aloeissues.2png.png

    aloeissues3.png

    Is this going to print? In this case stay away from JPEG. Use PDF. If the requested print JPEG people, go to another store.

    Also: you will need to enlarge this green rectangle for the red line (bleed)

    As for save for web: it can save only the active work plan. So save you one, and then select the other graphic board and save this one.

  • Cannot save work plans

    A client came to me with a problem with one of their Illustrator files.

    They recently moved from Illustrator CS2 creative cloud. When opening and closing result/backup files, all work plans are converted into a single plan of work and a new layer containing the 'Guides for plans of work' is created. Reopening the CS2 original file and save it with the CS2 version selected in the dropdown menu with save option results under in the same issue, as the possibility of using work plans are grayed out in advance... See screenshot below.

    Capture.PNG


    It is a problem for them since they cannot create this multipage PDF files. Is there a work around for this? Either by saving the file differently or a trick in order to save a PDF of several page from a single source of work plan?

    Create new plans of work of the guide layer.

    In CS2, you can only export a multi page PDF of fiddling around with paper sizes in the print dialog box. Since CS4, it is therefore more necessary. You just set up an artbaord for all the pages you need.

  • Axes on all work plans

    Hi all

    I am trying to create some simple vertical centerlines to shoot at the same place on all existing work plans in my document.  What I have so far is creating a sufficient amount of centerlines, but only drawing in the right place on the half of the plans of work while the other half are drawn into the space between work plans.  Here's what I have so far.

    function addCenterLines() {
        var doc = app.activeDocument;
    
        for (var i = 0; i < doc.artboards.length; i++) {
    
        var abRect = doc.artboards[i].artboardRect;
    
    
        { // Add top line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abRect[2]/2, abRect[1]-10), Array(abRect[2]/2, abRect[1]-20) ) );
        };
    
    
        { // Add bottom line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abRect[2]/2, abRect[3]+10), Array(abRect[2]/2, abRect[3]+20) ) );
        };
    
    
        }
    }
    
    

    Here is a screenshot showing the top of a couple of work plans and the central lines placed between the two.

    abTop.jpg

    I think I have a misunderstanding of how the abRect coordinates the work, as in which side is [0], [1], [2] and [3], which can be driven to my inability to get this right.  If someone could point me in the right direction so I can sort my construction lines, I would greatly appreciate!

    Thank you

    Ben

    NOTE: Centerlines provided in the print dialog box are not an option in this case.

    artboarRect values in the table are [left, top, right, bottom]

    check this example, I got carried away and added horizontal lines

    function addCenterLines() {
        var doc = app.activeDocument;
        for (var i = 0; i < doc.artboards.length; i++) {
    
        var abRect = doc.artboards[i].artboardRect;
    
        // be more explicit to make it easier to visualize/read/handle
        var abLeft = abRect[0];
        var abTop = abRect[1];
        var abRight = abRect[2];
        var abBottom = abRect[3];
    
        var abWidth = abRect[2]-abRect[0];
        var abHeight = abRect[1]-abRect[3];
        var abCenter = abWidth/2;
        var abMiddle = abHeight/2;
    
        { // Add top line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abLeft+abCenter, abTop-10), Array(abLeft+abCenter, abTop-20) ) );
        };
    
        { // Add bottom line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abLeft+abCenter, abBottom+10), Array(abLeft+abCenter, abBottom+20) ) );
        };
    
        { // Add left line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abLeft+10, abBottom+abMiddle), Array(abLeft+20, abBottom+abMiddle) ) );
        };
    
        { // Add right line
        var line = doc.pathItems.add();
        line.stroked = true;
        line.setEntirePath( Array( Array(abRight-10, abBottom+abMiddle), Array(abRight-20, abBottom+abMiddle) ) );
        };
    
        }
    }
    
    addCenterLines ();
    
  • How can I change the order of the pages of work plans in Illustrator CS6?

    How can I change the order of pages / print order of artboards in Illustrator CS6? I know that it was negligence in this regard griped in previous versions, once work plans have been introduced, but surely, it's been fixed now. It is only fair that I can't understand how do. It is not intuitive by any means.

    Open the Panel work plans (in the window menu) and drag work here plans to change the order. When the work plan tool is the current tool, selection of a plan of work in the work plans Panel will highlight the workplan in the workspace.  The first column in the work plans Panel indicates a number representing the page / print order. The second column is the name given by the Illustrator which you can change in the Control Panel, while the artboard tool is selected.

  • Printer stops working after update to the Capitan AE

    My Epson AcuLaser M1400 work properly with my previous Mac OS.  Once I have updated to the last, the printer stops working.  When I print a document, the printer stopped - "filter" has crashed.  A problem of 'sehr4ap supposed to quit' report pops up and clicked OK, let it go to Apple.  What is a possible solution to this problem?  Thank you!

    If you have verified that you have the latest drivers installed,

    in SystemPreferences-> printers and Scanners remove the printer with the sign less below.

    Then re install the printer (with the plus sign).

  • A printer that works exclusively with the iPad 2 air without a computer

    can someone suggest a printer that works with the iPad 2 air without a computer at all

    AirPrint printers must be able to do.

    AirPrint allows to print from your iPhone, iPad or iPod touch - Apple Support

  • Found 0 results for my browser missing important elements, the menu..., whole tool bar drop down to print, copy, work offline, file, save, bookmarks, history. I just installed latest foxfire on windows xp. Found a few instructions, but they called in the

    Found 0 results for my browser missing important elements, the menu..., whole tool bar drop down to print, copy, work offline, file, save, bookmarks, history. I just installed latest foxfire on windows xp. Found a few instructions, but they called the keys of my computer does not have (key under OSX there no file, edit, history, help, tools, navigation, all the things that your directions say to use. Also, I'm still hanging and the message a scrip is running. I don't know what are the thises scripts but I of course don't need them.

    This has happened

    Each time Firefox opened

    == I just noticed it. It probably happened when I upgraded foxfire.

    Don't see the menu bar not (File, Edit, View, history, Favorites, tools, help)?
    Turn on/off the menu bar is a new feature in version 3.6.
    (Linux and OSX see: what happened to the file, edit and view menus? )
    Windows Method 1. Press and hold the key and press the letters of the following in this exact order: V T M
    Windows method 2 Press and release the button. The Menu bar is displayed; then choose ~ ~ red: V ~ ~ iew > ~ ~ red: T ~ ~ oolbars and click on ~ ~ Red: M ~ ~ enu Bar.
    The menu bar should now be displayed permanently, unless you turn it off again using view > toolbars. Check = not displayed, NO check mark is not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing

    Navigation, bar toolbar bookmarks and other toolbars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).

    To display the status bar, view, and then click status bar to place a check mark (display) or remove the check mark (not shown).

    Mode full screen
    http://KB.mozillazine.org/netbooks#Full_screen

    See also:
    Back and front toolbar buttons or others are missing
    Customize controls, buttons, and Firefox toolbars

Maybe you are looking for

  • 23 Firefox hangs frequently on windows 7

    Here is my last ID 5 crash: bp-09afa203-3f12-4508-b9bd-8f4452130821 8/20/2013 8:21 PM bp-5afaf7a4-d21b-494d-ab0a-36b0f2130821 8/20/2013 8:13 PM bp-c98c4f26-1954-437d-b5d9-001712130819 8/19/2013 1:32 PM bp-e5538032-c6e1-46f6-9b98-af7b62130817 8/17/201

  • How can I get a new option on the Customize tab

    When I right click on the toolbar and go in customize, there is no 'new tab' icon, but there are 2 icon "bookmarks". How can I get the 'new tab' icon to add to the toolbar?I had the 'new tab' icon in my toolbar when I upgraded to 5.0 and when I tried

  • OnDrawingCell seems to be to delete all cell values

    I paint a capable 2D on a report that I did successfully with the result I want. It may be important to note that all cell values are expressions, not channels. It looks like this: My final step is to change the background color based on the value of

  • Problems of the XP Backup utility

    I am running XP Professional SP 3.  Backup hangs at "preparing to backup using snapshot.  I'm using the wizard: "(Advanced) Backup Wizard. "Backs up everything on this computer". "Backing disk F up" which is a second drive on this computer and has mo

  • Download "not enough memory is available to process this command." When installing umdf.exe

    Hello, I tried to configure this file umdf.exe but this error pops up: "not enough memory is available to process this command." "The installation did not complete. There is a lot of memory and disk space So could someone tell me what to do?