Scripting to replace a layer in a psd file and save as a tiff for multiple images in a sequence

I have over a hundred images, all the same size, that I need bring into photoshop as a designated layer, one at a time, flatten the image and save as a tiff file with a sequential number, then repeating the process. I have not used javascript before but it seems like it should work. I'm using CS5. Thanks

It is possible to do that via Scripting.
If you are unable to create such a Script maybe you should look up the chapter »Creating data-driven graphics« in the documentation.

Similar Messages

  • Double-click On PSD File And Timeline Disappears!?

    Have dropped a .psd file on track V2 and want to resize it in Motion window.
    So double-click it but timeline seems to vanish and a "negative" clip or something appears in the middle left of where timeline should be.
    How do I make .psd behave like a normal clip and prevent the timeline from vanishing?
    Incidentally the .psd has a coloured shape with a transparent background.
    Message was edited by: Ian R. Brown

    Hi Ian,
    The PSD opens in its own sequence in the timeline to let you change the values of the various layers that it might be composed of. If you make a PNG, it will not save the layers or let you edit their values in FCE.
    If you want to change the motion values of the whole PSD file and not change them individually for the separate layers, select the PSD in your original timeline and click Enter to open it in the viewer.

  • Visible bit flag in layer record of PSD file format

    Hi
    I'm parsing PSD files, and retrieving vitals about the layers they contain. One of the things I'm interested in is whether or not a layer is visible. The Photoshop File Format guide I have states that it is a "visible" flag, but based on the results I'm getting, it appears to be a "hidden" flag instead - i.e. it is 1 if the layer is hidden, and 0 if visible. Can anyone confirm if this is indeed a misnomer?
    Thanks
    Danny

    Here is how I am using it. In full
    There was a space on the original code.
    property type_list : {"TIFF", "JPEG", "PNGf", "PICT"}
    property extension_list : {"tif", "tiff", "jpg", "jpeg", "png", "pict", "psd"}
    set nLayersName to {}
    set matchList to {}
    set matchLayer to "Shadows"
    tell application "Finder"
      set HotDestination to (((path to pictures folder) as text) & "HotDestination")
      set HotFolder2do to (((path to pictures folder) as text) & "HotFolder2do")
      set HotFolderDone to (((path to pictures folder) as text) & "HotFolderDone")
      repeat with tFile in (get document files of folder HotDestination whose name extension is in extension_list and (name does not start with "50" or name does not start with "MJC"))
      set nLayersName to getNameOfLayers(tFile)
      set matchList to isMatchLayer(nLayersName, matchLayer)
      if item 1 of matchList then
      move tFile to the folder HotFolderDone -- move to subFolder A
      else
      move tFile to the folder HotFolder2do
      end if
      end repeat
    end tell
    on getNameOfLayers(f)
      set matchCmdStr to " | awk '!/kMDItemLayerNames|\\)/ { sub(/[ ]+/, \"\"); print }' "
      set mdlsCmd to "mdls -name kMDItemLayerNames "
      return do shell script (mdlsCmd & f's quoted form & matchCmdStr)
    end getNameOfLayers
    on isMatchLayer(psdLayers, matchItem)
      set matched to false as boolean
      set matchCount to 0 as integer
      repeat with layer in paragraphs of psdLayers
      if matchItem is in layer then
      set matchCount to matchCount + 1
      set matched to true
      end if
      end repeat
      return {matched, matchCount}
    end isMatchLayer

  • Add layers from other psd file and retain text layers (Batch processing)

    I want to batch process a large number of portraits adding text info from the filename (year_name_number.jpg) to existing text layers. I want to make a template psd file containg the correct labeled text layers formatted and adjusted (With bleding effects and more) How can i add layers from an other psd file to the active document and retaining the text layers editable. The place command in PS5 adds the file as a smart object, no use.
    Any ideas?
    I tried the combined action/script way, but no joy so far. Right now i am making the text layers with a action, then calling the script from the action. It works but its difficult to make different templates from adjusting a action.
    The code i am using now (in combination with a action creating the 3 text layers and other grapchical elements)
    var docRef = activeDocument;
    // strip the extension off
    var fileNameNoExtension = docRef.name;
    fileNameNoExtension = fileNameNoExtension.split( "_" );
    if ( fileNameNoExtension.length > 1 ) {
                    fileNameNoExtension.length--;
    fileNameNoExtension = fileNameNoExtension.join("_");
    var myString = fileNameNoExtension;
    var mySplitResult = myString.split("_");
    var textLayer = docReflayers['Year']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T1 = textLayer.textItem;
    T1.contents = mySplitResult[0]
    var textLayer = docRef.layers['Name']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T2 = textLayer.textItem;
    T2.contents = mySplitResult[1]
    var textLayer = docRef.layers['Number']; // define the existing text layer to a var
    docRef.activeLayer = textLayer;
    textLayer.kind = LayerKind.TEXT;
    var T3 = textLayer.textItem;
    T3.contents = mySplitResult[2]
    Thanks
    Eivind

    norway_photo wrote:
    Here is my intended workflow:
    - A set of same size portraits labeled "year_name_number.jpg"
    - A template.psd os same size with graphical elements and text layers (named "year", "name" and "number")
    - A script or action copy/pasting og adding all layers from the template.psd file to the open portrait file, retaining text layers editable.
    - A script (The one i have working) changing the text layers added from the template to text from the filename.
    - A action saving this as a PDF ready for print.
    This way i can process a large number of portraits, add names and other information and save it as a file ready for print.
    I can image it is much easier to edit a template than writing a script or an action creating all the graphical elements.
    And even better, to change this template for different customers/departments/logos.
    Basically i need a way to add layers to an open file using a batch file or script.
    Eivind
    OK I understand what your trying to do and now I do not agree with your conclusion you made in you first append about place being no good for you.  Its is I think a perfect solution for you. I feel you need to address the process from a new angle.
    I am very familiar with templates I use them all the time for collages which I populate with an actions.  However I do not batch this process and my process is interactive.  If you look at what your trying to do from the angle of creating a collage.  You will see what you are trying to do is automate the population of a single image collage using a single template in a batch process.  An example of one of my single image collage populated by one of my actions that has been saved as a jpeg image file.  My actions are played in Photoshop with no document opened.  After my action is play there is a single collage document in Photoshop that contains layers that can be tweaked all text is in text layers the can be edited.
    If I wanted to automate the batch population of a single collage template I think all I would need to know is three thing.
    1.) The location of the input images
    2.) The full Path of the PSD template file.
    3.) The location to store the output  file
    Looking at some of the recent threads in this forum I could almost cut and past the script you want to put  together.  There was a recent thread that had javascript code to process files in a folder and process only a list of file types.   There also was a thread that had a place function in it to place images into the current document or create a new document to place the image into.  The image was read from the web using a URL.  This thread has code to change a text layer.  At first I though you may need to open these image file to get at its meta-data to get the Portrait image Exif creation data.  But see all you need is the Filename for it has the data you want the year and name.  So the function that get the image files from the folder will give you that. The   Script needs to Open the Template PSD file and retrieve the prototype text layers text content  then the scrip needs a loop that get the next image file to be processed from the folder get filename function. In the loop the image files are place into the open template above a place holder layer like the Background layer. Then using the prototype text contents and the filename are used  create the new content for the text layer and then change the text layers content to it.  Follow that up with a save as for the output file.  Once the output file is saved delete the placed smart object layer.  When this loop ends the script will close the document with no save and end. As for the three inputs you need  the script could either have a dialog like the images processor or simply prompt you for the folders and template file.

  • In Bridge when I R click on psd file and tell it to open in Photoshop it says can't find Photoshop.exe. Photoshop is running at the time. How do I teach it where Photshop.exe is?

    In Bridge when I R click on psd file and tell it to open in Photoshop it says can't find Photoshop.exe. Photoshop is running at the time. How do I teach it where Photshop.exe is?

    I have sort of the exact same problem. Extremely far away from user friendly
    I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
    And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
    All in all this gives a lot of changes just to enter an event.
    Command N
    I learnt from your input to use this fuction. At least that comes up with a one hour event as default.

  • I cant set my ps cc 2014 as a default program to open psd files and alike. What will I do?

    I cant set my ps cc 2014 as a default program to open psd files and alike. What will I do?

    What will I do?
    You could try giving pertinent information. (edited)
    http://forums.adobe.com/docs/DOC-2325

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

  • How to tell script colse all files and save, but no untitle docs

    Hi everyone 
    I want to colse the open files and save them but no those files which have never been saved.
    I try this script but after ran, all the files are no be saved.
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                     if(app.activeDocument.saved == false){
                           docs[i].close(SaveOptions.NO);
                     else if(docs[i].close(SaveOptions.YES));
    can someone tell me what's wrong with the script?
    thanks
    Regard
    Teetan

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        else {
            docs[i].close(SaveOptions.YES);

  • Help!!! accidently saved my psd file and lost all my design

    hello forumers
    i  accidently saved my psd file and lost all my design is there a way to get it back?!??!?!pls helppppp...
    ps:i didnt delete it,i just clicked on save as wihtt he same name,but i dindt notice the design was missing,until i opened up the psd file again.
    thank you.

    This is a Mac Photoshop forum, so it was a reasonable assumption. If you closed the file you are hooped unless you can access a backup.
    Too late for this job, but you might want to install Dropbox. You get 2 GB of space for free on Dropbox’s servers, and any files saved in your My Dropbox (I think that’s what it’s called on Windows) folder are copied to Dropbox’s servers. The big deal is that you can share any files or folders with other users or other computers, so you could have the same folder on your work and home PCs and files saved on one are automatically updated and available on the other. The other big deal is that Dropbox keep old versions of files. I keep all working jobs in Dropbox and remove them only when complete and ready for archive. It is a huge bacon saver.
    Self serving link: https://www.dropbox.com/referrals/NTUwMDUyOTI5
    If you sign up using the above link I get a tiny increase in my allotted storage.

  • Trying to edit psd file and it adds another layer

    I have a psd file that was created to use as a template (it is all text).  When I try to edit it, it won't let me, instead another layer is added to the file, instead of allowing me to edit the layer that I am in.......what am I missing???

    If it's been rasterized, you will not be able to edit it.  You'll have to re-create the text layer.  The trouble is that since it was a template, you may not have the fonts that were used to originally create the template.

  • Trying to change solid white to transparent in a black to white gradient in one layer of a psd file

    Hi everyone
    I have a multilayered psd file. All layers should remain opaque except the black to white gradient layer where I need the white to be transparent. So that when I oplace the final psd on top of a block of solid colour in Indesign the gradient shows the background colour through where the black fades off.
    Any ideas?
    thanks
    Mark

    Thanks for your reply. I am attaching a lowres psd file where I need to save it with top layer opaque and 'shadow' layer transparent. So that when I place it over solid colour in Indesign the gradient allows the background colour to show through where the balck is fading out.
    cheers
    Mark

  • Why can't I find and open a text layer on photo (psd file) for editing using an iMac?

    When I open Photoshop Elements 10 Editor to edit a text layer on a 511KB 412x292 psd photo the text layer is not shown.  How do I open the text layer?  How do I edit the text layer?  How do I save the finished work product?  The background layer is locked.  I can't unlock it.  Do I have to unlock first or do what?  I have tried any number of approaches none of which open the text layer for editing.  I would greatly appreciate help in resolving this issue. 

    How do you know there is a text layer? All the layers should be shown in the layers panel.
    The background layer is always partially locked and that has no effect on editing. You can ignore that.
    Would this be a comp layer or part of a layer group created in full Photoshop, by any chance?

  • A script that captures the coordinates of the mouse clicks and saves them into a file

    Hello,
    I'm trying to create a cartoon taking a movie (I've chosen blade runner) as base. I've got the real movie and I've exported all the pictures using VirtualDUB. Now I have a lot of images to modify. I would like to modify the actors faces with the faces generated by Facegen modeller. I'm thinking how to make the whole process automatic because I have a lot of images to manage. I've chosen to use Automate BPA,because it seems the best for this matter. I'm a newbie,so this is my first attempt using Adobe Photoshop and Automate BPA. I wrote a little script. It takes a face generated with Facegen modeller and tries to put it above the original actors faces. But it doesn't work very good and I'm not really satisfied,because the process is not fully automated. To save some time I need to write a script that captures the coordinates of the mouse when I click over the faces and that saves them into a file,so that Automate BPA can read these coordinates from that file and can put the face generated with Facegen Modeller above the original face. I think that Automate BPA is not good for this matter. I think that two coordinates are enough,X and Y. They can be the coordinates of the nose,because it is always in the middle of every face. It is relevant to knows how big should be the layer of the new face,too. This is the Automate BPA code that I wrote :
    <AMVARIABLE NAME="nome_foto" TYPE="TEXT"></AMVARIABLE>
    <AMVARIABLE NAME="estensione_foto" TYPE="TEXT"></AMVARIABLE>
    <AMSET VARIABLENAME="nome_foto">br</AMSET>
    <AMSET VARIABLENAME="estensione_foto">.jpeg</AMSET>
    <AMVARIABLE NAME="numero_foto" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_x" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_y" TYPE="NUMBER"></AMVARIABLE>
    <AMWINDOWMINIMIZE WINDOWTITLE="Aggiungere_layer - AutoMate BPA Agent
    Task Builder" />
    <AMWINDOWMINIMIZE WINDOWTITLE="AutoMate BPA Server Management Console
    - localhost (Administrator)" AM_ONERROR="CONTINUE" />
    <AMENDPROCESS PROCESS="E:\Programmi_\Adobe Photoshop
    CS5\Photoshop.exe" AM_ONERROR="CONTINUE" />
    <AMRUN FILE="%&quot;E:\Programmi_\Adobe Photoshop CS5\Photoshop.exe&quot;%" />
    <AMPAUSE ACTION="waitfor" SCALAR="15" />
    <AMSENDKEY>{CTRL}o</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMINPUTBOX RESULTVARIABLE="numero_foto">Inserire numero FOTO di
    partenza -1</AMINPUTBOX>
    <AMINCREMENTVARIABLE RESULTVARIABLE="numero_foto" />
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMMOUSEMOVEOBJECT WINDOWTITLE="Apri" OBJECTNAME="%nome_foto &amp;
    numero_foto &amp; estensione_foto%" OBJECTCLASS="SysListView32"
    OBJECTTYPE="ListItem" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES"
    CHECKOBJECTTYPE="YES" />
    <AMMOUSECLICK CLICK="double" />
    <AMPAUSE ACTION="waitfor" SCALAR="10" />
    <AMSENDKEY>{CTRL}+</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="20" />
    <AMSENDKEY>l</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMSENDKEY>v</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="131" MOVEY="99" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="99" MOVEY="162" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="release" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMINPUTBOX RESULTVARIABLE="coord_x">Inserire coordinata X</AMINPUTBOX>
    <AMINPUTBOX RESULTVARIABLE="coord_y">Inserire coordinata Y</AMINPUTBOX>
    <AMMOUSEMOVE MOVEX="200" MOVEY="200" RELATIVETO="screen" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMMOUSEMOVE MOVEX="%coord_x%" MOVEY="%coord_y%" RELATIVETO="position" />
    <AMMOUSECLICK />
    and this is a short video to explain better what I want to do :
    http://www.flickr.com/photos/26687972@N03/5331705934/
    In the last scene of the video you will see the script asking to input the X and the Y coordinates of the nose. This request is time consuming. For this reason I want to write a script that captures automatically the coordinates of the mouse clicks. The only thing to do should be click over the nose and the script should make the rest. As "c.pfaffenbichler" suggested here : http://forums.adobe.com/thread/775219, I could explore 3 ways :
    1) use the Color Sampler Tool’s input with a conventional Photoshop Script.
    2) use After Effects would provide a better solution.
    3) Photoshop’s Animation Panel might also offer some easier way as it might be possible to load two movies (or one movie and one image) and animate the one with the rendered head in relation to the other.
    Since I'm a totally newbie in graphic and animation,could you help me to explore these ways ? Thanks for your cooperation.

    These are the coordinates of the contours of the face that you see on the picture. Can you explain to me how they are calculated ? The coordinates of the first colums are intuitive,but I'm not able to understand how are calculated the coordinates of the second one.
    Thanks.
    1 COL     2 COL (how are calculated these values ?)
    307.5000 182.0000 m
    312.5000 192.0000 l
    321.5000 194.0000 l
    330.5000 193.0000 l
    335.0000 187.0000 l
    337.0000 180.5000 l
    340.0000 174.0000 l
    338.5000 165.5000 l
    336.0000 159.0000 l
    331.5000 153.0000 l
    324.5000 150.0000 l
    317.0000 154.0000 l
    312.5000 161.0000 l
    309.0000 173.0000 l
    307.5000 182.0000 l
    Message was edited by: LaoMar

  • Where can I find a PSD file of a 100 square template for a Football pool?

    I am starting a football pool and I can't find a PSD template. Does anyone know where I can find one? Thank you.

    Try  Rags Gardner http://www.rags-int-inc.com Photoshop Collage Template Builder script Copyright (c) 2006 builds layered Photo Collage Template psd files.
    http://www.rags-int-inc.com/PhotoTechStuff/CollageTemplate/

  • Script Task to Create a ".CSV" file and save it on SFTP.

    I have a sql query that is being pulled from a variable. Using this variable I want to create a .csv and save it on SFTP. I do not want to use any third party tools. I really appreciate if anyone can help me with the code. I do not know coding.  

    The solution Visakh has provided still requires third-party tool. And the proposed tool is not integrated in SSIS.
    For a better alternative I would recommend the commercial COZYROC
    SFTP Task. It is completely integrated in SSIS and very similar to the standard FTP Task.
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Maybe you are looking for

  • Outlook 2013 Mail Setup Add Account crashes with Rundll32 error and will not connect to Exchange in Windows 8.1

    I got a new Acer laptop with Windows 8.1 over 3 weeks ago, and installed Office Professional Plus 2013.  I have an Office365 E1 subscription, but this Office 2013 is not associated with the subscription. When I go to setup any email account using the

  • Editing a word document and reading on a Mac

    Using Document to Go, I edited a word document and saved the document.  I then sent this edited document to a friend who has a Mac using the new Snow Leopard operating system - he could not open the edited document, but could open the unedited, origi

  • ORA-1503 during install of iAS 9i R2 infrastructure

    Hello, I am installing Oracle 9iAS R2 infrastructure on a freshly installed Windows 2000 (SP3) system. During operation of the Database Configuration assistant the message "ORA-01503 - CREATE CONTROLFILE failed" apppears. The last lines in the iasdbA

  • Core dump in malloc

    I get a core dump while making a call to malloc. Owing to waht reasons can malloc give a coredump?

  • Broadband usage surge

    My average monthly broadband usage is 6MB. In the the last 24 hours I have apparently used 2MB. No iplayer, no films, no skype, no downloading - just an hour or two on on the web checking emails etc. How can I get an explanation?  Many thanks for any