Script to Batch adding a layered template to multiple layered psds?

I have several hundred numerically named layered psds that I need to add a layered psd template on top of.  Both are the same size and will line up if I could just somehow automate the process.
This seems like something there should be an existing solution for, but I'm having an awful time trying to figure it out and I haven't found a script.  I'm hoping a script already exists and I just haven't stumbled into the right keywords to find it.
Is there some way to set up an action to import the layered psd? Perhaps split up the template layers and import images into each and recreate the layered psd?
I'm running CS5.

This might help (you need to change the filpath to the correct one, naturally).
Unlinked Layer and Vector Masks would be lost …
// 2012, use at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theTemplate = app.open(File ("/Backup HD/photoshop/test/strokeTestTemplate.tif"));
for (var m = theTemplate.layers.length - 1; m >= 0; m--) {
          app.activeDocument = theTemplate;
          theTemplate.layers[m].duplicate(myDocument, ElementPlacement.PLACEATBEGINNING)

Similar Messages

  • Find purchase order of a material batch added in a delivery for a report re

    Hi,
    I create purchase orders in ME21N and do the inbound delivery in VL31N referring the purchase order. Sales order entry is done in VA01 and once goods is in-house allocation is done in J3AB. Outbound delivery is created in VL01N.
    For a report requirement I need to find the purchase order of the outbound delivery material batches.
    We donu2019t maintain the purchase order number any ware in the material batch. Please advice me on how to find the purchase order of a material batch added in a delivery.
    Thanks,
    Sam

    use Mb51, enter material number and batch number and movement type 101, then execute.
    You get the receipt, go into the detail and you will see the PO number
    Technically spoken, material movements are stored in MKPF and MSEG table
    Edited by: Jürgen L. on Apr 26, 2011 8:24 PM

  • Shell script for batch compilation of forms 10g on AIX 5.3L AS

    Hi All,
    Can anybody provide me the Shell script for batch compilation of forms 10g and reports 10g on AIX 5.3L AS?
    Regards,
    SAM

    Hi Alex,
    I tried with the below script as well as the one you had posted.
    ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin
    export TNS_ADMIN
    LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/jdk/jre/bin/cla
    ssic:$LIBPATH
    export LIBPATH
    cd ../forms
    for i in `ls *.pll`
    do
    echo Compiling Library $i ....
    $ORACLE_HOME/bin/frmcmp module=$i userid=mydbuser/mydbuser@mydb
    batch=yes module_type=library
    compile_all=yes window_state=minimize
    done
    export ORACLE_HOME=/opt/oracle/OraHome_3
    export ORACLE_TERM=vt220
    export LD_LIBRARY_PATH=/opt/oracle/OraHome_3/lib:/opt/oracle/OraHome_3/jdk/jre/l
    ib:/opt/oracle/OraHome_3/jdk/jre/lib/i386:
    cd ../forms
    for i in `ls *.pll`
    do
    echo "Compiling Library $i ...."
    /opt/oracle/OraHome_3/bin/frmcmp module_type=form userid=mydbuser/mydbuser@mydb
    module=$i batch=yes compile_all=no
    window_state=minimize upgrade=no
    done
    echo "PLL Compilation done"
    But there was a same kind of error thst turning up all the time.
    Compiling Library Agf.pll ....
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-10043: Cannot open file.
    Form not created
    I hence updated the permissions on the pll as below
    -rwxrwxrwx 1 oracle oinstall 335872 May 19 16:31 Agf.pll
    But the problem is still persisting.
    My environment details are as below.
    I am working on Win XP machine. Connected to my AS via telnet and xmanager. I have set my DISPLAY to my local IP.
    Is there any thing more that I need to do? If so then let me know.
    Regards,
    SAM

  • Action script though batch client

    While importing data using Action Script, if we have properties with same label name which belongs to different namespaces, DRM is not able to identify which property it should actually point to. Generally when we run the script from UI, we manually select the correct property in UI.
    Now, what can be done to achieve the same functionality when we run the script from batch client.
    Suppose we have two properties, with same label name as ACCOUNTCODE which are present in two different namespaces,
    ESSBASE.ACCOUNTCODE
    CUSTOM.ACCOUNTCODE
    Now while importing the action script, system is unable to determine to which ACCOUNTCODE property it should point. What changes in action script or any other places  can be done to make the system enable to point to the correct property.

    Our client wants it this way only (having same property labels across Namespaces). Is this possible to have Property Names or Fully qualified Property Names instead of Labels in hierarchy export of DRM?

  • Script for batch processing

    Hello
    I need help
    I created a batch sequence which set watermark and security to pdf files from one directory. Now i want to create another sequence: 1. set security to none and 2. delete watermark.
    I have a problem with set security to none because every time i need change preferences for batch process to security method=password security by hand.
    Maybe there is a way to change this settings with java script in batch "execute java script"?
    Or how i can change with batch sequence a security method from passsword security to "none" if i know password
    Thanks in advance

    Create a "blank" batch process (ie, without any action), but under the Output Options tick the box to optimize the files and set the optimization settings you want to use.

  • Creating script in Batch Processing

    I am having issues creating a script in batch processing for any user, including the admin. The error is "Permission Denied - 70". I've rebooted servers, checked shared/NTFS permissions on the folder locations for the application. This is FDM 11.1.1.1, SS and HFM are 11.1.1.2.
    Not finding anything as of yet, and we really need this to work.
    Any help would be great!
    Thanks,
    --Ed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Ed,
    This has to do with OS permissions ... not permissions inside the application.
    Please make sure that the user you are running the software as has full control of the NTFS FileShare.
    Thank you,

  • How to execute SQL scripts in batch

    Hi,
    I have separate scripts for Creation of Tables, Stored Procedures, Views, Triggers in different .sql files.
    I have to execute thses scripts in batch in different servers and different databases without opening SSMS.
    All .sql files to be executed in single command.
    Please suggest how to achieve?
    Appreciate your help.
    Regards,
    Bala

    you can use sqlcmd
    https://msdn.microsoft.com/en-us/library/ms162773.aspx
    other options are osql,isql
    https://technet.microsoft.com/en-us/library/aa214012%28v=sql.80%29.aspx
    https://technet.microsoft.com/en-us/library/aa214007%28v=sql.80%29.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Is there any script or batch program that can pick a xml file...

    Hi,
    Is there any script or batch program that can pick a .xml file from a folder and place it in a different folder on the same directory periodically without using an XI interface.
    Thanks,
    np

    Hi Nadini,
    Please refer below link for how to sechdule a batch file.
    [Schedule Batch File-How to?|http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2006-04/msg01349.html]
    And please refer below links for how to write a batch file and other one as batch file commands.
    http://www.wikihow.com/Write-a-Batch-File
    http://www.aumha.org/a/batches.php
    these two links was a click away in google :).
    regards
    Aashish Sinha

  • Script for Linking multiple layers to a null layer

    I'm trying to link multiple layers to an animated null layer but I want each layer to start the animation from layer starting time.
    What would be the script I need to add instead duplicating null layer for every layers?
    I hope that question isn't too confusing to understand lol
    TIA
    W

    Sorry, I'm not good at explaining things though texts lol
    Hopefully this picture can explain better what I'm trying to achieve.
    I want to link the text layers to ROTATE null object but I want the keyframes to start at the beginning of each of text layer. This way, I won't need keyframes for each text layer and I can adjust the timing easier later. I know the script lines to link them to a null object but I can't figure out the line to tell the keyframes to start at the beginning of the layer instead the null object in the timeline.
    I think I just made this more confusing lol

  • Move/Copy multiple Layers to other document  with Script

    Hello, I have one question to how move or copy multiple layers to other document?.
    With this script i can move one by one:
    var docRef = app.activeDocument;
    var moveLayer1 = docRef.artLayers.getByName('Title');
    var moveLayer2 = docRef.artLayers.getByName('Background');
    var moveTo = app.documents.getByName('Untitled-1');
    var layerRef = moveLayer1.duplicate( moveTo, ElementPlacement.PLACEATBEGINNING);
    var layerRef2 = moveLayer2.duplicate( moveTo, ElementPlacement.PLACEATBEGINNING);
    but i need move two layer in one step....

    var docRef = app.activeDocument;
    select_layer("Title");
    select_layer("Background", true);
    var moveTo = app.documents.getByName('Untitled-1');
    duplicate_active_layer(docRef, moveTo);
    function select_layer(name, add_to_sel)
        try {
            var desc = new ActionDescriptor();
            var ref  = new ActionReference();
            ref.putName( charIDToTypeID( "Lyr " ), name);
            desc.putReference( charIDToTypeID( "null" ), ref );
            desc.putBoolean( charIDToTypeID( "MkVs" ), false );
            if (add_to_sel) desc.putEnumerated( stringIDToTypeID( "selectionModifier" ), stringIDToTypeID( "selectionModifierType" ), stringIDToTypeID( "addToSelection" ) );
            var ok = true;
            try { executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO ); } catch(e) { ok = false; }
            ref  = null;
            desc = null;
            return ok;
        catch (e) { alert(e); throw(e); }
    function duplicate_active_layer(src_doc, dst_doc)
        try {
            app.activeDocument = src_doc;
            var d = new ActionDescriptor();
            var r1 = new ActionReference();
            r1.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
            d.putReference( charIDToTypeID( "null" ), r1 );
            var r2 = new ActionReference();
            r2.putName( charIDToTypeID( "Dcmn" ), dst_doc.name);
            d.putReference( charIDToTypeID( "T   " ), r2 );
            d.putInteger( charIDToTypeID( "Vrsn" ), 2 );
            executeAction( charIDToTypeID( "Dplc" ), d, DialogModes.NO );
            d = null;
            r1 = null;
            r2 = null;
        catch (e) { alert(e); throw (e); }

  • Convert multiple layers into separate smart objects

    I have multiple layers in a document that I want to make into separate smart objects.
    If I select them and choose "convert to smart object" in the Layers Panel fly out, it flattens the layers into 1 smart object.
    Can it be done, or do I need to make each layer a smart object one at a time.
    OR... let me back up
    I have several files in Bridge, I want to "load into Photoshop layers" using the TOOLS > Batch Command BUT have each file load as a smart object.
    Either way would be great!

    While these don't use the batch command, take a look at
    from within photoshop, File>Scripts>Load Files into Stack.
    For bridge try Dr. Browns Services:
    http://www.russellbrown.com/scripts.html
    If you have cs5, you can drag files from mini bridge into an existing
    photoshop document, for smart object layers, provided you have
    your preferences under general to place or drag raster images as smart objects.
    MTSTUNER

  • MULTIPLE place image import...& "save as.." multiple layers to multipage PDF

    Hello,
    just some suggestions I`d like to see to speed up my set up and output..
    i`d like to import multiple placed images into illustrator CS4. So open dialogue box place, and multiple select images for placing.
    regards output save as...
    Can we output multiple layers  into a single PDF in illustrator?  Or multiple layers into single JPEGS  from illustrator with one command instead of individually saving out  each layer... would be a huge time saver for me.I create different artworks on different layers..
    Currently  I output each completed layer individually and then right click those  outputted jpegs in their output folder and choose "combine supported  files into acrobat..." to make a single acrobat file..i`d like to do this right in the illustrator "save for PDF" dialogue box. Adding  something in the Save for PDF output dialogue box to save layers to one PDF as multiple pages would be a helpful time saver..
    I`d  also like to be able to CTRL click multiple layers and go " save as..."  only those layers get saved out... 

    , bridge -FILE/PLACE into ai, goes to separate layers in AI as placed.
    in PS, bridge/tools/ps/load files into ps layers.. CS4.
    just using right click in explorer on individual PDF docs from layers saved from PS to combine to PDF. but cannot output multiple pds from layers in AI in CS4.

  • How to multiple layers in the MAP web item?

    Hi experts,
    I'm working on a demo with BWGIS. I encounter several problems with the MAP web item.
    My demo:
    QA results visualized on global (region object - e.g. Europe, Asia), country (country object) and plant level. Use geo-drilldown to navigate into the lower layers functionality to get from the global view to the countries within one region and plants within one country.
    My settings:
    Region is a static geo-characteristic. For region I used the cont200.shp file. Also country is a static geo-characteristic, here I used cntry200.shp. For test I used ARCGIS to draw (points) some example plants in the country shape file. I uploaded this shape file to the plant object (also static).
    My success:
    I'm able to display the QA results in a separate global or country view within the 3.x Web template.
    My problems:
    A) The map web item in 7.0 does not display any data: it looks like no link can be made between the query result and graphic although we installed the latest IGS.
    B) I'm not able to drilldown from a global view to the countries within one region (doubleclick on one region in global view) within the 3.x Analyzer and 3.x Web template.
    My first question is about the concept of BWGIS:
    1) I want to use geo-drilldown (double-click) to navigate to the lower layers. For example in the global view I see only the QA result per region (shape file of region object) -> doubleclick on Europe, I expect to zoom in to Europe and see the QA results for all the countries in Europe (shape file of country object). How do I modell this in the web application designer?
    alt. 1a: 1 map – 1 layer - 1 dataprovider - underneath 1 query with region and country in the row is not allowed, so how to navigate between the two geo-relevant objects?
    alt. 1b: 1 map - 2 layers (2 shape files) - 2 dataproviders - 2 queries, one with QA result per region and one per country -> in that case both will be displayed at the same time, is not what I want. How to navigate between the two layers?
    alt. other ?
    2) I know how to make maps with multiple layers in ARCGIS, but do I need this for BWGIS, because one layer is one shape file? So do multiple layers in the map web item correspond to multiple layers in a ESRI ArcMap Document.
    More specific questions:
    3) Is there a lot of experience with the map web item in 7.0, documentation and working examples? Are there known problems (I can't find anything in sap notes). Is it better to still use the 3.5 Web Application Designer for this?
    4) There is very little information on SAP help, SDN and other forums about BEx Map and moreover the MAP web item. Does anyone have more documentation for me?
    Thanks in advance.
    With kind regards,
    Rick Stoll

    Hi Rick,
    I am working on the same topic. I am strongly interessted in solutions to your open questions, that you pulled forward in the past.
    Did you make any progress?
    Thanks in advance and regards
    Marcus

  • How do you create PDF of multiple layers in Illustrator CS3 so each layer is on separate page?

    I am using CS3 and designing business cards. I have 10 names layed out as a separate layer in Illustrator.
    I am now trying to save the Illustrator file as a PDF so that each business card appears on 1 page in 1 PDF document.
    The PDF is saving as one page with all the names jumbled together rather than as separate pages. Clicking "Create Acrobat Layers from Top-Level Layers" does not work. Does anyone know how to save multiple page PDF from a layered Illustrator file? Thanks.

    with a script probably check with the Illustrator scripting forum
    the is away you can manually do it but it is quite cumbersome you make a document large enough to tile to the number of pages you need in the pdf.
    then position in order of the tiles the art  and as you position the art you also create a new layer for that art. You don't actually have a different layer in this case for each page you just really need the art properly tiled.
    You then have to print to pdf or to postscript and then distill.
    Like I say very cumbersome but it was the way they use to do it. CS 4 makes this easier though different layers would still require a script.
    Best to use different artboards.

  • Photoshop CC 14.1 editing paths on multiple layers disabled?

    Has editing paths on multiple layers with the direct selection tool been disabled in Photoshop CC 14.1? I can't seem to figure out how to do it now, shift- or command-clicking doesn't do anything. In fact, I can't even click to select individual paths on different layers, something that Photoshop has had forever.
    While it was at times problematic the way it was in 14.0 (always selecting multiple layers and having to go into isolation mode to edit just one), there were times when it was useful to edit multiple layers, or even just click between layers with the direct selection tool.
    I've seen this documentation on the site, but I'm not sure it's very helpful. Can someone give me some assistance?
    Also, what is the custom keyboard shortcut for entering/exiting isolation mode? It is mentioned in the above image, but what actually is it?

    You can still work with paths the way you could in 14.0 -- just choose the All Layers mode in the Path Selection tool or Direct Selection tool options bar. We added the Active Layers mode for users who prefer to isolate which paths can be selected based on which layers they have already selected in the Layers panel.
    To clarify:
    -Active Layers mode: Clicking or dragging on the canvas with the vector selection tools will not affect which layers are selected in the Layers panel. Double-click to enter isolation mode is disabled.
    -All Layers mode: Works just like in 14.0 -- clicking or dragging on the canvas with the vector selection tools can change which layers are selected in the Layers panel. Double-click to enter isolation mode is enabled.
    If you find yourself switching between these two modes a lot, you can add a custom keyboard shortcut that will toggle which mode is selected. In the Keyboard Shortcuts dialog, choose Shortcuts For: Tools and scroll down to the Direct Selection Mode Toggle option. Add your new keyboard shortcut here.
    As for your question about isolation mode keyboard shortcuts, this just means that you can assign a custom keyboard shortcut to this command as well (Select > Isolate Layers).

Maybe you are looking for

  • Changing existing classical scenarios in ID to ICo post PI upgrade

    Dear Members, Installed a test PI 7.11 system and restored primary PI DEV system backup on to the test PI system and then the test PI 7.11 system was upgraded to PO 7.4 dual stack system. Done with the post up-gradation activities and the test PO 7.4

  • 1.2.6 oracle lite connecting using SQL*PLUS

    i have successfully installed a oracle 8iLite on win2000 professional. user id --- system password --- manager host string ---- odbc:polite But when i try to give this command " set serveroutput on " i am getting a message "Server not available or ve

  • Is there any options/addons for selecting/changing image size when viewing images?

    When clicking to open images when on web pages there is no option to select size. I'm looking at some pages that have images (mostly jpg) I like to compare and that is very hard when all images open in a size that normally fill most of the browser wi

  • When to Leave Feedback

    Someone please correct me if I am wrong..... As a SELLER, feedback should be left on the basis of good communication and timely payment, am I correct? As a BUYER, feedback should be left if item is as described, received in a timely manner, and you a

  • Photoshop Elements Stacking function not working

    I have downloaded and installed Elements 12 and when I opened it I discovered that it would not stack a series of pictures - gave me an error message saying "create stack failed."  Also when I tried to crop a pictures, it did not save it to the Catal