Batch Processing and Putting Two files together?

Hello,
I'm trying to find out if there is a way, in Photoshop, to automate placing a logo file and border from another file into a set of photos? Basically, I have a folder of, let's say, 4x6 images, and I have a file that has two layers, a thin transparent border layer, and a layer housing the logo. I would like to find out if it's possible to automate the process where I can batch a lot of files to put this file (or the two layers) onto the original image, then save and close and go on to the next file. Any ideas how to accomplish this? Thanks!
Regards,
Dave

Here is a simple script I made a while back that allows you to place one of two different logo files on the image, depending whether the image is upright or horizontal in orientation.
All you need is to put you two logo files in a folder and tell the script which folder they are in. After that, when you run the script, it will place the appropriate logo file onto you image depending on the orientation. I used "C:\\MyLogoA.tif" and "C:\\MyLogoB.tif" for this script.
You can run this script from a batch process.
var doc = app.activeDocument; // This defines the active document
var width = doc.width.value; // This is the width of the original image
var height = doc.height.value; // This is the height of the original image
// Call the placeLogo function
if(width>height){
placeLogo("C:\\MyLogoA.tif");
}else{
placeLogo("C:\\MyLogoB.tif");
// This is the placeLogo function
function placeLogo(path)
// =======================================================
var id35 = charIDToTypeID( "Plc " );
var desc8 = new ActionDescriptor();
var id36 = charIDToTypeID( "null" );
desc8.putPath( id36, new File( path ) );
var id37 = charIDToTypeID( "FTcs" );
var id38 = charIDToTypeID( "QCSt" );
var id39 = charIDToTypeID( "Qcsa" );
desc8.putEnumerated( id37, id38, id39 );
var id40 = charIDToTypeID( "Ofst" );
var desc9 = new ActionDescriptor();
var id41 = charIDToTypeID( "Hrzn" );
var id42 = charIDToTypeID( "#Pxl" );
desc9.putUnitDouble( id41, id42, 0.000000 );
var id43 = charIDToTypeID( "Vrtc" );
var id44 = charIDToTypeID( "#Pxl" );
desc9.putUnitDouble( id43, id44, 0.000000 );
var id45 = charIDToTypeID( "Ofst" );
desc8.putObject( id40, id45, desc9 );
executeAction( id35, desc8, DialogModes.NO );
// =======================================================

Similar Messages

  • How to send automatic mail and put attache file on batch file ?

    how to send automatic mail and put attache file on batch file ?
    START MAILTO:[email protected]?SUBJECT=PHONE%CALL^&BODY=Testing

    Hi,
    Do you want to use a batch file to create new email message (including recipients, subject and email body) with attachments? If so, I'd recommend you post your question in the Scripting Guys forum for further assistance:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Please feel free to let me know if I've misunderstood something.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Joining two files together

    I'm kinda new to Java, but i'm trying to create a program which joins 2 files together. It works fine with .txt files, but when i try to join two .wmv files, only the one it processes first will show, though the output file will have the size of the two files together. Here's my code for joining them together:
    try {
                        JFileChooser location = new JFileChooser();
                        location.showDialog(this, "Save file");
                        File videoout = location.getSelectedFile();
                        OutputStream os = new FileOutputStream(videoout);
                        BufferedOutputStream out = new BufferedOutputStream(os);
                        InputStream is = null;
                        BufferedInputStream in = null;
                        ListIterator pathsIterator = paths.listIterator();
                        while(pathsIterator.hasNext()) {
                            File part = new File(pathsIterator.next().toString());
                            is = new FileInputStream(part);
                            in = new BufferedInputStream(is);
                            int line;
                            while((line = in.read()) != -1) {
                                out.write(line);
                        in.close();
                        out.close();
                        JOptionPane.showMessageDialog(this, "Done");
                    } catch(IOException io) {
                        System.out.println("IO: " + io);
                    }Any idea what i'm doing wrong?
    Thanks

    Just because you put 2 files in the same file doesn't mean some application can understand that it's 2 files in 1. Meaning, the player of the merged WMV can't know that there's 2 files and that it should play both back to back. You have to read the WMV files knowing the WMV format and then generate 1 file that combines the 2, which typically would include updating header information in the file. Java's I/O classes are not going to provide that sort of thing for you.

  • Opened a bogus email *.zip file from amazon that put two files in my downloads folder OSX 10.8

    Hi
    Can anyone advise my next steps to take, I accidentally opened a bogus email *.zip file attachment from 'Amazon" It unzipped an put two files in my downloads folder one appeared to be a *.exe file. They were deleted immediately along with the email.
    Now I am terrified that there is something lurking on my system...trojan/ keylogger/ virus..
    I am no expert so can anyone give me help!
    My mac is 8 months old running OSX 10.8 with latest updates.
    Thanks Mick

    Thank you both, you have put my mind at rest.
    Normally I am red hot at intercepting bogus emails, not today it would appear!
    I actually was in the process of deleting it and double clicked the file by complete accident, and in a flash it had opened up and put the files in the folder, I spent the rest of the afternoon panicing and reading all forums blogs etc..
    Actually Thomas I found your blog and took some good tips from it, one of them was to switch java off immediately.
    Thanks again
    Mick

  • Batch Processing doesn't update files in Premiere Pro CS5.5

    Hi,
    I'm not sure if this question should be under 'Audition' or 'Premiere Pro', but I'm selecting a large range of audio clips (from a wedding ceremony) and sending to Audition from Premiere (selecting 'Edit in Adobe Audition')
    When the clips appear in the files section of Audition I select 'Batch Process', drop them in and make the batch process start. When everything is finished and the files are automatically saved, I head over to Premiere to see if the wav's have updated - but nothing. Everything is exactly the same.
    Any help would be great?
    I'm not adding any prefix's etc to the filename, and I'm selecting 'overwrite existing files' and 'same location as original files'.
    Cheers,
    Thomas

    Hi Durin,
    Sorry for the delay, had a couple of deadlines to meet and ended up doing the hundred-or-so clips one-by-one in audition to get it done.
    That's the issue exactly, I go back to Premiere after doing the batch process (and they all auto-save) but Premiere doesn't update the waveform or in fact the audio doesn't show the changes I've just made. The strange thing is that if I do them one by one, then Premiere recognizes the changes and I can get on with it.
    The steps I take are: 1) Drop the clip in the timeline, do a bunch of editing (occasionally nesting and multi-cam editing a sequence). 2) Right click and Edit in Audition 3) Open Batch Process in Audition 4) Drag drop all the files just sent to Audition from Premiere, into the Batch Process section 5) Run batch process 6) Go back to Premiere and see if it's updated in the timeline. I wait, and wait, but nothing. Everytime.
    I'm thinking it's something simple I've clicked, but have no idea what. Either that or it's some sort of bug issue.
    I will be upgrading to CS6 creative cloud soon, hopefully that'll fix it.
    If you have any ideas, I'd love to hear them. Otherwise, thanks for trying.

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • HT5129 I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event, it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event (when MobileMe ended), it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    Only to load your backup from before downloading the MM photos
    LN

  • How do I talk to someone about my account and merging two subscriptions together...Can't seem to get to any way to conversing with a human from the website.

    How do I talk to someone about my account and merging two subscriptions together...Can't seem to get to any way to conversing with a human from the website.

    Worst Service In the World
    I just want to cancel my order and get a refund, the company MUST be corrupt because it is nearly Impossible to get what is rightfully mine. It's been 3 years.. how, sad, is that, I got other people to try too...
    they steal from people... by making it impossible to talk to anyone real.

  • Batch Combining two files together into one

    hi everyone, first time poster here and i would greatly appreciate any help in my dilemma.
    im trying to batch process images into a single file using a script i got from the link below.
    Ok, my problem....merging two unique files batch Process
    my only issue im having is that i want the new batched file names to retain the foreground image file name.
    right now the batched file name is "file0001.psd", "file0002.psd", and so on.
    thanks for your help,
    Greg

    File Basics:
    The jpg file format does not support layer. You are better off creating your layer file as a PSD and then generate a jpg file.
    The PSD will be the master file for archiving and the JPG the working file.
    Save the script as batchStaks.jsx in the Bridge Start up script folder.
    Bridge >> Preferences >>Startup Scripts >> Reveal My Startup Scripts
    Restart Bridge.
    Create a Bridge stack
    Bridge >> Stacks >> Group as Stack
    Execute the batchStacks.jsx script from the Bridge Tools Menu
    Bridge >> Tools >> Batch Sctacks 2.2.0
    The script will save a layered PSD file in the same folder as the original file.
    The layered PSD file will retain the name of the image behind the thumbnail stack thumbnail.
    You need to experiment in Bridge with the image stack order to get the result you want.
    What I do to create layered file which retains the name of the thumbnail image stack is:
    I create a photoshop action which reverses the layer order.
    Then I have the script run the action while it creates the layered file.
    The result is a layered file that retains the filename of the thumbnail image stack. 
    The limitation is that the script dependes on the action file tho.
    #target bridge 
    @@@START_XML@@@
    <?xml version="1.0" encoding="UTF-8"?>
    <ScriptInfo xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en_US">
         <dc:title>Batch Stack 2.2.0</dc:title>
         <dc:description>The script loads Bridge Stacks as Photoshop layes and returns a layerd PSD file.</dc:description>
    </ScriptInfo>
    @@@END_XML@@@
    app.bringToFront();
    if( BridgeTalk.appName == "bridge" ) {    
        var batchStack = new MenuElement( "command","Batch Srtacks 2.2.0", "at the end of Tools" ); 
    batchStack .onSelect = function () {  
        var stacks = app.document.stacks; 
        var stackCount = stacks.length;
        for(var s = 0;s<stackCount;s++){ 
              var stackFiles = getStackFiles( stacks[s] ); 
              if(stackFiles.length> 1){ 
                   var bt = new BridgeTalk; 
                   bt.target = "photoshop"; 
                   var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+stackFiles.toSource()+");"); 
                   bt.body = myScript; 
                   bt.send(5); 
        function getStackFiles( stack ){ 
              var files = new Array(); 
              for( var f = 0; f<stack.thumbnails.length;f++){ 
              files.push(stack.thumbnails[f].spec); 
             return files; 
        function psRemote(stackFiles){ 
            app.bringToFront(); 
            var thisDoc = open(File(stackFiles[0])); 
            var Name = decodeURI(app.activeDocument.name).slice(0,-4); 
            thisDoc.layers[0].name = decodeURI(Name);
        for(var a = 1;a<stackFiles.length;a++){ 
            open(File(stackFiles[a])); 
            Name = decodeURI(app.activeDocument.name).slice(0,-4); 
            activeDocument.activeLayer.duplicate(thisDoc); 
            app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); 
            thisDoc.layers[0].name = Name;       
            var psdOptions = new PhotoshopSaveOptions();
            psdOptions.embedColorProfile = true;
            psdOptions.alphaChannels = true;
            psdOptions.layers = true;
            psdOptions.spotColors = true;     
            var name = app.activeDocument.name.replace(/\.[^\.]+$/, '');        
            var path = app.activeDocument.path;
            var saveFile = File(path + "/" + name );
            app.activeDocument.saveAs(saveFile, psdOptions, true); 
            app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);   

  • Batch processing and rendering multiple clips in SpeedGrade CC?

    I'm new to SpeedGrade CC, just watched 2 hrs of Lynda training, and I'm just about ready to go. Before people jump on my question, let me walk through what my indended use will be.
    Unlike most of the content / workflow that was discussed in the training, I'm not color grading a sequence of clips stitched together in a timeline, but multiple clips that have been pre-edited to length, that I want to apply the same color correction two. This will only be done to small groups of clips, maybe 4-5 at a time, but since I'm all about efficiencies, I wanted to ask what the best workflow for doing this is.
    Let's assume that I've taken one of the clips and adjusted everything natively in Sg (no Dynamic link from Pr). I like where I ended up with the settings so I saved a .look preset file.
    So what is the next best way to handle applying these settings to the other files? Creating mutliple, separate Sg projects doesn't seem the efficient way, and having to cue up each succesively for Render, equally as slow. In the lessons the instructor illuded to working with and processing "dailies", which I also assume would be achieved through a batch process, but that isn't covered.
    I appreciate the advice!
    Steve

    Interesting ... process ... you have there. Hmmm. I can't think of any way you could work in Sg that isn't on a timeline. Whether made in PrPro or there in Sg(native) ... it's a video editing program, and that's done on a timeline. Plus the way the both PrPro and Sg are designed, you MUST define and name a project before you can start to work.
    Now, other than where the working files for the project will be kept, you don't really have to complete the forms out in PrPro especially. After you give your project a name and say where it's files will be kept, you can simply skip the rest and when you create a new sequence & drop a clip onto it, the sequence settings will be set to match your footage.
    Now ... do you have all one type footage (codec, frame size & rate) or different kinds, say some 1080p-24fps, some 720i-60fps, some 460p-29.976fps, that sort of thing?
    You know, what I'm thinking ... might actually be the easiest. Create a project in PrPro ... and a new sequence for each type of footage. Use the media browser panel to import all your footage into the project panel ... drag & drop a few similar clips to a sequence, then DL that over to Sg (takes a couple seconds) to grade/look 'em. Save 'em back to PrPro, then render that sequence out. Then when you know you've got a good render, either delete the clips from that timeline & re-use it, or create a new one. Do your next group. Rinse and repeat, so to speak.
    I take it you've no reason to save the sequences of graded clips past rendering them, so you should be able to use just the one "projects" and import folders as necessary, removing them as you will. You won't spend near any time with the "project" details, but the programs will be happy.
    Again, as noted above you can either copy a grade to other clips on a sequence or put an "adjustment layer" over the clips of a sequence in PrPro (project panel: new item -> adjustment layer) and then grade that ... it will automatically be applied to all clips under it.
    And before you ask again, there isn't any way to work a single clip without it being a "project" with a timeline. These aren't photoshop, where you can open a single image.
    Neil

  • Putting two photos together in iPhoto

    For an online project, I need to take two photos and put them together with a line down the middle to separate them. It's two people and we have two separate photos but we want to use them in one photo space, if that makes sense. How do I create one photo out of two and separate the pictures in the middle with a vertical line? Thank you for your help.

    Do you know of a program that is easy to use?
    That would depend on what your level of expertise is. Most can be run in demo mode so you can try them and see which works best for you. If you intend to get into a lot of editing I suggest you try Photoshop Elements 9 for Mac. It can do some very sophisticated editing like this and this.
    OT
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    NOTE: this is not the same as routinely backing up your entire iPhoto library folder to protect your photos. It only protects the loss of your organizational efforts that the database file contains.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • 'Merge Cell' is greyed out - how do I activate it and merge two cells together?

    I am just learning Numbers, trying to merge two cells together should be a very simple process!
    I have followed the instructions in help
    The 'merge cells' function remains greyed out no matter what I do - I therefore cannot merge two or more cells into one!
    Please help, is there something I need to activate in the cell?

    Hi Claudia,
    Actually, a "truly blank document" would be an empty canvas, containing no table of any type, no document header or footer locations, no document margins, no page definitions, no page orientation. Just a blank sheet onto which you could put whatever objects you wish.
    Perhaps Apple should have named the 'not blank' templates "Basic" rather than blank, removed the header column, and left the header row intact. That would match the "Basic" table style available in the Tables button's menu, used for adding a table to a Sheet.
    If you really do want to always start with a table which has no header rows and no header columns, it's easy enough to set up.
    Open a new 'blank' document (Apple's 'blank').
    Click on the Table 1 icon in the Sheets list and press delete. (faster than selecting cell A1, then taking two trips to the Table menu to delete first the (header) row then the (header) column)
    Click the Tables button and choose Plain to insert a 'plain' table (no header row, no header column)
    (optional) Add or delete rows or columns to make the blank table the size you desire.
    (optional) Position the table where you want it.
    Save the result as a Template.
    In Numbers Preferences > General > For New Documents, select Use Template, then Choose your new template.
    Until you change that preference, any New document you make will contain your new, 'blank' table.
    Regards,
    Barry

  • Is there a way to batch process color corrected RAW files to tif files?

    I got over 160 color corrected RAW files from my photographer when I thought I was getting TIf or PSD files. I need to put them into an indesign doc to send out for printing. Is there a way to convert all of these in one fell swoop without messing up the work that has already been done? I didn't allow in my timing to save each one individually since i didn't know I was going to need ot do this. I am really unfamiliar with batch processing, so no idea how to best go about this, or if I even can. Please help. I am working in Photoshop CS6. version 13.06 x 64

    An easy way is to open Bridge, select the images then click on Tools/Image processor.  You can then save as jpg, psd, or tiff.
    Hope this helps.

  • Putting two programs together

    Ok these guys want me to finish this project up and Im stilla beginner in this haha. Well I have a program where u input 4 parameters and it does a process in the Console to thread it to another program(this is not my problem) but then I want this data that the other program makes and put it to the graph....I have all of the code ready(or know how I will implement it) but I cannot seem to put his graph into the other program....if you want the code and a better description then you can IM me KrayzeeMunkee400, email me [email protected], or just post here...its appreciated

    You can use getters:public int[] getData () {
        return data;
    }or similar.

  • Batch processing and replication

    Oracle 11gr2 (11.2.0.3) Linux x86_64
    I wanted to know if anyone has come up with a solution for replicating batch process data. Oracle recommends in the documentation (as a best practice) to not replicate batch processing data through streams, rather to run the batch process on the source and then on the dest database. If we cannot do that, what are our options for this?
    Thanks all.

    Anyone have any ideas/thoughts?

Maybe you are looking for

  • Incompletion Log V50UC  EXCTR inconsistency at Delivery header and Item lev

    Hello Experts Incompletion Log V50UC  EXCTR inconsistency at Delivery header and Item lev This fields and structure is defined both at header and Item Incompletion procedure . But at Header level , the field is getting removed , but not at Item level

  • Silly renaming files question

    Hi, I know this sounds utterly idiotic, but is there a way to rename a photo other than in List View in the Browser View? All I want to do is change the name of a single photo that I imported awhile ago. Thanks. Edit: Especially in full screen. Is it

  • Breadcrumbs not picking up settings file configuration

    Hi I am using FM11, RH10 as part of TCS 4.0. I am creating a settings file that will be used by team to generate WebHelp outputs. In this, I want to change the default Times New Roman font of breadcrumbs to Arial. While I am aware how to set that dur

  • At&t iPad mini Retina

    Hi, Does iPad mini retina display work on other GSM networks out of the US? Am planning to buy one here from the US and need to know if it would work with me back home.

  • Print .PDT,.DOC,.XLS files using java print API

    Hi, I need to print different types of documents like pdf, word, excel files etc. Please let me know how to proceed on this. I tried using the following code, but it is printing all junk/html tags on the paper. Please let me know how to resolve this.