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

Tags: InDesign

Similar Questions

  • I need to replace a color on my image with a specific part of the image color.  How do I?

    I spent over 2 hours trying to figure out how to replace a color on a part of my image with a specific color indicated on another part of the image.  So far, I was able to go to "Replace color" on my version of Adobe Photoshop, but it seems that I can only change the hue and brightness of the color that it is currently.  I need to use a specific color, so this didn't help me.  Does anyone know how to complete the task that I refer to?

    In addition, please keep in mind that I use Adobe Photoshop 6.0, not a fancy cs version or whatever it is.  So it's fairly old school...

    Any help/comments are greatly appreciated!  Thank you.

    Hello

    In fact, you can choose a specific color using the replace color function!

    Go to Image > adjustments >, replace color

    Select the color you want to replace. Then, click on the 'Result' box in the section of replacement (see below)

    A color picker dialog box opens, where you can use the eyedropper tool to select a specific color in your image, or you can enter the specific RGB/CMYK values.

    Please post again if you have any other questions - I use CS6, but as far as I know, this process works the same for PS 6.0.

    Good luck!

  • 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		   
  • Pouvez CS6 rendering of an image on a separate layer 3D?

    I expect that when I visited a 3D layer she would put the image rendered on a new 2D layer in the layers palette. But nothing is not created... There's just the picture on the screen. If I change anything to make it disappeared. I copy the image to the Clipboard and paste, first and foremost, to put the record on its own layer and make it permanent.

    Sounds really strange to me. Is there a setting that will make Photoshop rendering on a new layer immediately so I don't have to copy and paste it? Are there other options?

    Thank you!

    Darrell

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

    Darrell,

    Unfortunately, you are right. You will need to copy the image to a new layer.

    Photoshop assumes you're rendered image because you're done. If it does in the 3D layer that you are working.

    FYI
    If you test a just framework and want to get an overview, you can make a selection and restore a small specific area.

  • How to make a simple slideshow DVD of a group of .jpg images?  No music, no fancy transition. iDVD &gt; magic DVD comes close, but the quality is poor and I want the images in a specific order.  I also have iLIFE ' 09, which includes iPHOTO

    How to make a simple slideshow DVD of a group of .jpg images?  No music, no fancy transition. iDVD > magic DVD comes close, but the quality is poor and I want the images in a specific order.  I also have iLIFE ' 09, which includes iPHOTO

    1. put the image files you want in the slide show in an album and genre as you want. Follow the Apple document to prepare images for iDVD: iDVD ' 09 (7.x): preparing images for iDVD slideshows

    2 - Launch iDVD and select an older theme, not animated.  You can change the background of the theme by dragging the image file of your choice, black or other, in the display pane for the menu.

    3 - Click on the button '+' and add a slideshow from the menu.

    4. double click on the sideshow button to enter the mode of construction of the slide show.

    5. in the media pane click the Photos button.

    6 - click on iPhoto and find the album you created with selected images.

    7. Select all images in the album and drag to the left in the slide show window.

    8 - Select the transition for the slideshow and the time for each slide on screen

    9 - follow this workflow to help ensure the best DVD video qualty:

    Once the project you want it save it as an image disk via the menu file → save as Disk Image . It will separate from the process of encoding of the burning process.

    To check coding mount the disk image, launch a DVD player and read it.  If it plays OK with DVD, encoding is good.

    Burn burn to disc with utility disk or toasts to the slowest speed (2 x - 4 x) in order to ensure the best quality.  Always use higher quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are recommended in these forums.

  • How to save images in a specific folder by using a shortcut

    I am looking for a shortcut / action that saves images in a specific folder after working on images

    For example, I have dozens of images open in my Photoshop CS3, then I need to save as a jpeg of high quality, but don't want to have to click in time of ecah folder

    is it possible to make sure that as soon as I've cropped it and color corrected each image I can click a button and the image will be saved in a file in a high-rise?

    Any help much appreciated

    window-> Actions

    and record the steps once, you can add a shortcut for the quick application action

  • JavaScript can be used to replace images in a PDF from image files batch?

    I want to batch process the images in PDF files. I think how to do would be to export all the images in the PDF to separate image files, batch treat those in a photo editor, and then use javascript to batch replace images of the original PDF with the transformed versions. However I could not find any indication of this ability in the kit SDK Acrobat or any mention on the internets to anyone who tried. Does anyone know if we can at least in theory? Can someone point me to the right function to use?

    Note that there are more in these PDF documents as images, so rebuild new PDF files processed image files is not an option.

    No, it isn't. JS doesn't have access to the image stream in a PDF file. In principle, you can overlay the old images with new ones (using the button fields to contain the new images), but then the problem is that you cannot detect the location of the old images. In short, you need to look for an alternative.

  • How can I take my images in a specific folder on my HD in LR and the transfer of an external HD to make them appear in LR

    How to make my images in a specific folder on my HD in LR and the transfer of an external HD to make them appear in LR.

    My external hard drive is connected to my computer.

    In your operating system, copy (and not move) pictures of the external HD follow these instructions, do scroll down to the section called "update folder location". Adobe Lightroom - find folders and files moved or missing

    Once you have done this, and everything works as expected, you can remove photos from the internal HD.

  • How to delete an image without deleting the layer?

    I consider myself an intermediate photoshop user. Since the introduction of the CS6, I can't do something simple - remove an image without deleting the layer. I don't want the deleted layer because it has a clipping mask. The tech support agent told me to use the Eraser tool. It is not effective. Is there a way to do this? I don't understand why it is now so complicated. I'm so frustrated.

    Has CTRL or cmd to select all, and then press the delete key. Just make sure that the layer is selected first.

  • How can I move an image in a new layer

    I hope someone could help me.  I need to pass only an image of an image in a new layer with a white background.  I tried everything and can not make it work.  If someone could help with this, I would be grateful thanks TI.

    Have you selected all before copying?

    Otherwise if you select a part of an image, once completed the outline press (mobile dotted) Ctrl + J (Cmd + J) which will copy into a new transparent layer. You can drag a white background below.

  • Replace Image of Muse (pull on this model)

    Hi, hope someone can help me

    I use to draw this model ()shootit | Photography business Adobe Muse model | museGrid.comhttp://musegrid-pictureit.businesscatalyst.com/)

    I am trying to replace the first image (see below) with a right click on the mouse and select "replace image".» The small image (shoes) was substitute in the widget but enlarge the image isn't. I replaced because I want to keep the photo widget configuration as for example to reduce the photo when you reduce the internet explore.

    What I'm doing wrong, any help will be appreciated.

    I use Muse 2014 2.1.10

    " < a href =" http://S704.Photobucket.com/user/usernamefer/media/shoot%20It.PNG.html "target ="_blank"" > < img src = " " http://I704.Photobucket.com/albums/ww44/usernamefer/shoot%20It.PNG "border ="0"alt =" photo Shoot It.png"style =" "> < / a > "

    Hello

    You can try to do the same thing (right click--> Replace image) separately to enlarge the image as well. In Muse slideshows, you must replace the thumbnails and larger images separately.

    In addition, the reactivity of the widget should always remain intact after the replacement of the image.

    Kind regards

    Neha

  • The small images that accompany each layer have all disappeared.

    Photoshop CC.

    The small images that accompany each layer have all disappeared. Now, I don't see what's on each layer. I can't work withoutthese thumbnails for each layer.

    How can I fix?

    Brian

    Hi Jenny

    Thanks for your quick response.

    Your instructions solved the problem.

    Thanks again

  • 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

  • Replace images without affecting the interpretation?

    Hello group,

    I often move or rename files while working on a project, so AE reported as absent.  When I use "Replace Footage" to find images, AE changes the interpretation of the images, which affects the composite.  Does anyone know if there is a way to replace images WITHOUT affecting the interpretation of the images?

    Fine thanks

    Brian

    Apparently, there is no official way to replace without affecting the interpretation.

    But it might be a fairly easy way: don't forget interpretation > replace > Interpertation apply.

    It with the text of the interpretation rules file would make all automatic.

Maybe you are looking for

  • use of the server for executable files VI

    Hi all I tried to find a good explanation and example usage of VIserver to launch executables on client PC (XP) via a LAN to a PC (Win7) process controller. Basically, what I found for the controller is specified in this code snippet: The following w

  • Example PopupScreen

    Can anyone show me an example application with the code that appears as a popupscreen instead of a full screen for the storm? Having a little difficult here...

  • Software reinstalled Smartphones from blackBerry OS5.0 device

    Hello If I want to reinstall Pocket software OS5.0 to my BB 9300 curve 3G because it was damaged, please let know us if the following steps are correct? 1st download blackberry desktop manager version 6.0 or 5.0 for personal computers (PCs) and the n

  • Model as Muse

    Hallo liebe community,Ich bin interessiert an einem model as muse adobe. Kann mir einen guten offerers recommend someone? Like kostenpflichtig, important ist mir ein good support!Vielen Dank!

  • Send mail to adf faces

    Hello worldI am new to the technology of the ADF, I use J - Dev 11.1.1.5, I need to send email via the smtp Protocol when the button is clicked. are there examples of sample! I tried the link but it did ' t worked for me [http://adfblogs.blogspot.in/