Turning point on a specific layer printing...

Hey people, is there a way to disable printing on a specific layer in Adobe InDesign CS3 using javascript? I know that there are a few properties of the layer that can be turned on/off using JS, but I don't know if the print property is one of them. Thks, will

@Will:

app.activeDocument.layers.itemByName("myLayerName").printable = false;

will define the printing of the layer named "myLayerName" in the active document to "off".

Uwe

Tags: InDesign

Similar Questions

  • Points of delay shape layer encompassing

    When you change or shift points in a shape layer, some points are hidden behind the bounding box of the shape layer. Any tool that I use, After Effects assumes that I want to turn using the bounding box rather than moving the point of shape layer. Is there a way to temporarily hide the bounding box?ssssss.PNG

    some points are hidden behind the bounding box of the shape layer.

    the summits are not hidden, they are locked just because you selected a parametric form. If you want to have access to the peaks, it must convert your Bezier shape path and do you it by right clicking on the path of the ellipse, and then click "convert Bezier path.

    Is there a way to temporarily hide the bounding box

    just so you know - Ctrl + Shift + H allows you to hide all the controls of the layer

    Beautiful very illustrative arrows.

  • Is there a way to motion track a point in a shape layer?

    Hi all

    Is there a way to motion track a point in a shape layer?

    Thank you

    I didn't see any difference when I use a precomp or a null value. There is still no information on a specific point.

    Of course, there are: using expressions, you can switch to different properties of transformation of the null value.  Very convenient.

  • HP 500-054: want a screen saver to point to a specific personal photo album (not just generic 'photos')

    My screen saver tells me 'Photos' or 'Photo Gallery'.  I want it to point to a specific folder of my photos to set up as a slide show.  Can I do this with my wallpaper, but how to do this with my screen saver?

    Wrightquad71, welcome to the forum.

    Here is a video that should help with your problem:

  • My appleTV 2 see no room for my computer. WIndow 7. ATT Uverse router 5031NV-030 firmware10.5.1.525917 - att. I have the latest firmware on everything. I tried turning point/disable ipV6, run as administrator, disable firewall... .etc

    My appleTV 2 see no room for my computer. WIndow 7. ATT Uverse router 5031NV-030 firmware10.5.1.525917 - att. I have the latest firmware on everything. I tried turning point/disable ipV6, run as administrator, disable firewall... etc I tried everything. He used to work on Window Vista and a few old iTunes. I've updated to iTune and move to Uverse. It has stopped working. I thought the problem was iTunes so I've updated to the latest version of iTunes in Vista, then update to Vista and then install Windows 7 and then last iTune on Windows 7... I now have everything that the most recent and it still does not work. I have not the firmware on my router can be updated, but I think it's fairly new

    There may be a setting on your router you can disable IPv6.  Try this and also disable IPv6 on your NIC again.

  • How to align layers based on a specific layer

    Hello.

    I just watched this tutorial explaining everything by aligning the layers: https://helpx.adobe.com/photoshop/how-to/photoshop-align-images-multiple-layers.html#

    But, how do I align layers based on a specific layer? Let's say I have a layer about one-third from the left. I have 3 other layers, by going to halfway all the way to the right, I want to be centered based on this layer which is one third of the left, how should I do this? I want to use a specific layer as an anchor for the rest of the layers, regardless of the position of the layer anchor.

    I hope I'm using the right words, explaining what I want to do.

    Deon

    You can link layers and use one for the sorting of the anchor to speak.

    Maybe if you posted a screenshot of what you want to do.

    In any case, here is an example.

    Select the layer, press the layers of link at the bottom of the layers panel and then click on the layer in the layers panel, you want to use as anchor.

    Select the tool, then use the alignment buttons to align the blue layer in this example.

    Can also be used benchmarks commented to align the layers.

  • Search for page elements in a specific layer, and not in the entire document

    Hello

    could you please help me to modify this script, then it can look only to the elements of the page ("Date", "Time", "Version", 'Code of component Ops') in a single specific layer named "Legend" instead of all the layers?

    /**********************************************************
    
    
    ADOBE SYSTEMS INCORPORATED 
    Copyright 2005-2006 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. 
    
    
    *********************************************************/
    
    
    /** Saves every document open in Illustrator
      as a PDF file in a user specified folder.
    */
    
    
    // Main Code [Execution of script begins here]
    try {
      // uncomment to suppress Illustrator warning dialogs
      // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    
    
      if (app.documents.length > 0 ) 
      {
      var options, i, sourceDoc, targetFile,;
    
      // Get the PDF options to be used
      options = this.getOptions();
      if (options != null) 
      {
      sourceDoc = app.activeDocument; // returns the document object
      var fullName = sourceDoc.fullName;
      fullName = fullName.toString();
    
      var destFolder = fullName.slice(0,fullName.lastIndexOf("/"))
      var dateFound = false;
      var versionFromName = fullName.slice(fullName.lastIndexOf("-")+1, fullName.lastIndexOf("_"));
      var opsFromName = fullName.slice(fullName.lastIndexOf("/")+1, fullName.lastIndexOf("-"));
      var theVersionNumber = null;
      var dateField = null;
      var timeField = null;
      var opsVersionCode = null;
      for(i=0; i<sourceDoc.pageItems.length;i++)
      {
      if (sourceDoc.pageItems[i].note == "Date") 
      {
      dateField = sourceDoc.pageItems[i];
      }
      if (sourceDoc.pageItems[i].note == "Time") 
      {
      timeField = sourceDoc.pageItems[i];
      }
      if (sourceDoc.pageItems[i].note == "Version") 
      {
      theVersionNumber = sourceDoc.pageItems[i].contents;
      }
      if (sourceDoc.pageItems[i].note == "Ops Component Code")
      {
      opsVersionCode = sourceDoc.pageItems[i].contents;
      }
    
      }
      if (theVersionNumber == versionFromName)
      {
      if (opsVersionCode == opsFromName)
      {
      if (dateField == null)
      {
      alert('No tagged date field found. Tag field and try again.')
      }
      else
      {
      dateField.contents = TodayDate()
      timeField.contents = TodayTime()
      OLtargetFile = this.getTargetFile(sourceDoc.name, '.pdf', destFolder);
      sourceDoc.saveAs( OLtargetFile, options)
      // alert( 'Documents saved as PDF' );
      }
      }
      else
      {
      alert('Ops component code in boiler does not match file name or is not tagged. Please correct and try again.')
      }
      }
      else
      {
                    
      alert('Version number in boiler does not match file name or is not tagged. Please correct and try again.')
      }
      }
      else 
      {
      alert('User aborted')
      }
    
      }
      else
      {
      throw new Error('There are no document open!');
      }
    }
    catch(e) {
      alert( e.message, "Script Alert", true);
    }
    
    
    /** Returns the options to be used for the generated files.
      @return PDFSaveOptions object
    */
    function getOptions()
    {
    
    
    
    
    
      // Create the required options object
      var options = new PDFSaveOptions();
      // See PDFSaveOptions in the JavaScript Reference for available options
      options.pDFPreset = "AZ"
    
    
      // For example, uncomment to set the compatibility of the generated pdf to Acrobat 7 (PDF 1.6)
      // options.compatibility = PDFCompatibility.ACROBAT7;
    
      // For example, uncomment to view the pdfs in Acrobat after conversion
      // options.viewAfterSaving = true;
    
      return options;
    }
    
    
    function abortFunction(){
    
      modUI = null;
      dlg.hide();
      return null;
      }
    /** Returns the file to save or export the document into.
      @param docName the name of the document
      @param ext the extension the file extension to be applied
      @param destFolder the output folder
      @return File object
    */
    function getTargetFile(docName, ext, destFolder) {
      var newName = "";
    
    
      // if name has no dot (and hence no extension),
      // just append the extension
      if (docName.indexOf('.') < 0) {
      newName = docName + ext;
      } else {
      var dot = docName.lastIndexOf('.');
      newName += docName.substring(0, dot);
      newName += ext;
      }
    
      // Create the file object to save to
      var myFile = new File( destFolder + '/' + newName );
    
      // Preflight access rights
      if (myFile.open("w")) {
      myFile.close();
      }
      else {
      throw new Error('Access is denied');
      }
      return myFile;
    }
    
    
    function TodayDate(){
      var Dateformat = "dd mm yyyy";
      nameMonths = true;
    
    
       var monthNames = ["January","February","March","April","May","June","July","August","September","October","November","December"];
       var Today = new Date();
       var Day = Today.getDate();
       if(nameMonths == true){
       var Month = monthNames[Today.getMonth()];
       } else {
       var Month = Today.getMonth() + 1;}
    
       var Year = Today.getYear();
       var PreMon = ((Month < 10) ? "0" : "");
       var PreDay = ((Day < 10) ? "0" : "");
       var Hour = Today.getHours();
       var Min = Today.getMinutes();
       var Sec = Today.getSeconds();
       if(Year < 999) Year += 1900;
       var theDate = Dateformat.replace(/dd/,PreDay+Day);
       theDate = theDate.replace(/mm/,PreMon+Month);
       theDate = theDate.replace(/d/,Day);
       //theDate = theDate.replace(/m/,Month);
       theDate = theDate.replace(/yyyy/,Year);
       theDate = theDate.replace(/yy/,Year.toString().substr(2,2));
       if(Hour==0){
      Hour = "12";
      theDate = theDate.replace(/XX/,"AM");
       }else if(Hour>12){
       Hour = (Hour-12);
       theDate = theDate.replace(/XX/,"PM");
       }else{
       theDate = theDate.replace(/XX/,"AM");
       }
       var preSec = ((Sec < 10) ? "0" : "");
       var preHour = ((Hour < 10) ? "0" : "");
       var preMin = ((Min < 10) ? "0" : "");
       theDate = theDate.replace(/hr/,preHour+Hour);
       theDate = theDate.replace(/Mn/,preMin+Min);
       theDate = theDate.replace(/sc/,preSec+Sec);
       return theDate;
    }
    
    
    function TodayTime(){
      var Dateformat = "hr:Mn";
      nameMonths = false;
    
    
       var monthNames = ["January","February","March","April","May","June","July","August","September","October","November","December"];
       var Today = new Date();
       var Day = Today.getDate();
       if(nameMonths == true){
       var Month = monthNames[Today.getMonth()];
       } else {
       var Month = Today.getMonth() + 1;}
    
       var Year = Today.getYear();
       var PreMon = "";//((Month < 10) ? "0" : "");
       var PreDay = ((Day < 10) ? "0" : "");
       var Hour = Today.getHours();
       var Min = Today.getMinutes();
       var Sec = Today.getSeconds();
       if(Year < 999) Year += 1900;
       var theDate = Dateformat.replace(/dd/,PreDay+Day);
       theDate = theDate.replace(/mm/,PreMon+Month);
       theDate = theDate.replace(/d/,Day);
       theDate = theDate.replace(/m/,Month);
       theDate = theDate.replace(/yyyy/,Year);
       theDate = theDate.replace(/yy/,Year.toString().substr(2,2));
       if(Hour==0){
      Hour = "12";
      theDate = theDate.replace(/XX/);
       }else{
       theDate = theDate.replace(/XX/);
       }
       var preSec = ((Sec < 10) ? "0" : "");
       var preHour = ((Hour < 10) ? "0" : "");
       var preMin = ((Min < 10) ? "0" : "");
       theDate = theDate.replace(/hr/,preHour+Hour);
       theDate = theDate.replace(/Mn/,preMin+Min);
       theDate = theDate.replace(/sc/,preSec+Sec);
       return theDate;
    }
    

    You can target the layer to search, add a line before you right pageitems loop, and then change the new target in your loop

      var targetLayer = sourceDoc.layers['Legend']; // ** added
    
      for(i=0; i		   
  • Replace images on a specific layer

    Hello

    until now, I used the Script function in InDesign for "findandchange" - Actions. It works very well and is very fast.

    Now, I would like to replace the images on specific layers, as I do with textcontent with the Script "Findandchange". "»

    Is this possible?

    I try to explain...
    Example:

    -Find all of the images ' image-a1.tif"(path:folder/folder/image-a1.tif) on specific layer" mylayer "(or only activ and layers not locked)»»»

    -Replace all those images with this image "image-a2"tif(path:folder/folder/image-a2.tif).

    -Find all of the images ' image-b1.tif"(path:folder/folder/image-b1.tif) on specific layer" mylayer "(or only activ and layers not locked)»»»

    -Replace all those images with this image "image-b2"tif(path:folder/folder/image-b2.tif).

    -Find all of the images ' image-c1.tif"(path:folder/folder/image-c1.tif) on specific layer" mylayer "(or only activ and layers not locked)»»»

    -Replace all those images with this image "image-c2"tif(path:folder/folder/image-c2.tif).
    ...


    Background information:
    These pictures are all the same size and resolution. They make the distinction in content (/ france/English - German elements).
    It is an InDesign Document 'multilingual '. Each "Languagecontent" have its own layer.

    Thanks for the help...

    The advance without the linked files have a special rule: as a substitute 'car_en.eps' with 'car_how.eps. '

    IC, I give the script as the command explicit

    -> all related files named 'car.eps' replace by 'auto.eps' location 'C:\folder\folder '?

    -> all related files named 'bongo.eps' replace by 'bingo.eps' location 'C:\folder\folder '?

    Andy

  • Web coding on Vista 64-bit-specific: to print, you must select a printer

    When I print from ASP.NET or Silverlight 4 code, I get the error dialog box that starts "before printing, you can select a printer.  Everything in the print dialog box is disabled, except for the Cancel button.  This problem will not occur when you print from Microsoft Office applications or Internet Explorer.

    According to several Internet stations, the problem is specific to Windows Vista 64-bit.  However, I have not seen a solution.  Is this one?

    This problem has been resolved by installing Windows Vista Service Pack 2.

  • HP Officejet 4500 G510: Printer itself turns on and turns off continuously and does not print because it's on if briefly

    OFFICEJET 4500 HIMSELF GOES TO MARKET AND STOP PERMANENTLY SO DOES NOT PRINT BECAUSE IT OF ON IF BRIEFLY AND TO BED 'WARM UP' WHEN TURNED ON THEN TURNS OFF.

    The troubleshooting in the here document steps can help solve the problems of power with the g510 printer Officejet 4500.  If you need to replace the power supply I got good results in purchasing supply power modules on eBay or Amazon.

  • Cannot turn on the HP 6110 to print

    After feeding the HP 6110 get message "Scanner failure-turn electric power off, then on.

    At "makes power off etc." by unplugging, disconnect the rear of the unit, print 'on' button '-same message'

    Repeat above with delay after after "power off" and different circuit [for earthing].

    Also tried by troubleshooting holding message # and on6110 9 with connect to the back of 6110.

    Meet {information}

    Hi sail32,

    The scanner failed on this printer. You can contact our technical support at the 800-474-6836, and they can help you with a printer updated. They will also be able to direct you to the group that manages the extra ink, you have for this printer. If you do not live in the United States / Canada region please click the link below to get help from your region number.

    http://www.HP.com/cgi-bin/hpsupport/index.pl

  • Can anyone help to fix the imperfections of focus stacked.  I am trying to find a way to scan a part of a mask in a specific layer.

    The mark of 15:00 in this video, this is where I'm stuck

    Photography, tips and tricks: Focus Stacking - Episode 50 - YouTube

    I have not looked through the video, but if you look through the files in Bridge and find the one that is stronger for the problem area.

    In Photoshop, select the layers stacked focus, right click and turn into a smart object.  Add the file that you just find the stack of layers and use Auto alignment to align the new file with the smart object.  Then use a layer mask to hide out of the areas of focus on the new layer.

    If you have CC, you can use Select > field on the new layer, then add a layer mask.

  • How to move the frame with the title of undefined to specific layer script?

    I use currently using a script to move specifically named blocks of text and page for the corresponding layers elements (this is to make a catalog with several languages)

    It looks like this:

    ---------------------------------------------------------------

    App.documents [0].textFrames.Item ("NL") .itemLayer = "NL";

    App.documents [0].textFrames.Item ("en") .itemLayer = "EN";

    App.documents [0].textFrames.Item ("es") .itemLayer = "ES";

    App.documents [0].textFrames.Item ("from") .itemLayer = "OF";

    App.documents [0].textFrames.Item ("pl") .itemLayer = "PL".

    App.documents [0].textFrames.Item ("base") .itemLayer = "BASIC";

    App.documents [0].pageItems.Item ("base") .itemLayer = "BASIC";


    ---------------------------------------------------------------

    If it works fine. All items have been marked beforehand and put in some sort of model that we still use and yet (we use EasyCatalog so if you don't know what I'm talking about, it doesn't make much sense to do it this way)

    What I feel is missing is a piece of code that can detect the elements without any script tag, because there is always a lot of handwork to do too much, and new elements - who have no title of script - can get stranded on wrong layers if you don't pay attention.

    So basically, I would that all executives without labels, are transferred to the layer "BASE". It seems possible, but I can't find good examples anywhere...

    Hello

    Try this.

    var txfms = app.activeDocument.pages.everyItem ().textFrames.everyItem () .getElements ();

    for (var i = 0; i)<>

    {

    If (txfms [i] .label == "")

    {

    .itemLayer txfms [i] = 'BASE '.

    }

    }

    Kind regards

    Cognet

  • Set up a page for the specification of printing

    If I have to prepare a page by following these instructions, "print Specifications: Type: 203 × 280, trim: 222 × 300, bleed: 228 × 306" How should I do this?

    Sorry, I know it's a basic question, but I never went to school and still working than the Pathfinder tool is...

    Of course, I can see how to set up a page for a new document but Illy doesn't seem to follow the same convention in its dialog box new document.  I am on Windows Vista.

    Thank you

    Martin

    Only involved calculating subtracts the trim of the purge in you giving 6mm bottom lost all around. The only other thing you need to do if you're so inclined is to draw a rectangle the size of the type 203 X 208 and centering that box on your page. With this box checked, go to > Guide > make Guide.  It should look like the example.

  • Move all the items assigned an object Style to a specific layer?

    Hi all

    I just posted this in the regular InDesign forum but thought you Scripting Guys can have some smart solutions too:

    I'm working on a long document in InDesign (think the or not!) in which I have a lot of shots of models and images of the still life as it comes to women's fashion catalog. I only work in InDesign as all Photoshop work is ensured by our repro House, off site. At the present time the way in which I communicate all work comp that needs to be done is by placing a solid box of magenta or cyan on the image for maximum visibility. Of course, I have a style of object applied to these boxes, and I also like to keep a layer separate from the work immediately so that they can be off print times.

    Often I forgot to move a box to the correct layer or sometimes just slows me to do. What I would ideally like to do is assign a layer to the style of the object, but seeing that this is not possible, I was wondering if there is another solution to get all these boxes one layer in one foul swoop and so save me a piece of time.

    Thanks in advance!

    Ah, sorry about that. The script makes the unfounded assumption that each object has a style of object applied to it.

    Try this variant:

    myDoc = app.documents [0];

    myPIs = myDoc.pageItems.everyItem () .getElements ();

    for (var j = myPIs.length - 1; j > = 0; j-) {}

    try {}

    If (. appliedObjectStyle.name myPIs [j] = 'Repro Note') {}

    .itemLayer myPIs [j] = 'Repro Notes. "

    }

    } catch (e) {}; ignore the elements that have no style object

    }

    Dave

Maybe you are looking for