Replacing a text layer in many different psd files

I have 100 psd files with the same text layer information "Happy Birthday 2010". Next year I will be replacing the same information with "Happy Birthday 2011" Is there a way to do this automatically in Photoshop cs5? If so how?

Only with scripting and that is best asked in teh respectivce sub-forum. in the long run you may have better luck creating such documents in programs liek InDesign that can cross-reference documents with editable text...
Mylenium

Similar Messages

  • Replace the text numbers string in a txt file using C++.. Help Me..

    Read a Document and replace the text numbers in a txt file using c++..
    For ex: 
    Before Document: 
    hai hello my daily salary is two thousand and five and your salary is five billion. my age is 
    twenty-five. 
    After Document: 
    hai hello my daily salary is # and your salary is #. my age is #. 
    All the text numbers and i put the # symbol.. 
    I am trying this code: 
    #include <iostream>
    #include <fstream>
    #include <string>
    using namespace std;
    ifstream myfile_in ("input.txt");
    ofstream myfile_out ("output.txt");
    string line;
    void find_and_replace( string &source, string find, string replace ) {
    size_t j;
    for ( ; (j = source.find( find )) != string::npos ; ) {
    source.replace( j, find.length(), replace );
    myfile_out << source <<endl;
    cout << source << endl;
    int main () {
    if (myfile_in.is_open())
    int i = 0,j;
    //string strcomma ;
    // string strspace ;
    while (! myfile_in.eof() )
    getline (myfile_in,line);
    string strcomma= "two";
    string strspace = "#";
    find_and_replace( line , strcomma , strspace );
    i++;
    myfile_in.close();
    else cout << "Unable to open file(s) ";
    system("PAUSE");
    return 0;
    Please help me.. Give me the correct code..

    Open the file as a RandomAccessFile. Check its length. Declare a byte array as big as its length and do a single read to get the file into RAM.
    Is this a simple text file (bytes)? No problem. If it's really 16-bit chars, use java.nio to first wrap the byte array as a ByteBuffer and then view the ByteBuffer as a CharBuffer.
    Then you're ready for search/replace. Do it as you would in any other language. Be sure to use System.arraycopy() to shove your bytes right (replace bigger than search) or left (replace smaller than search).
    When done, a single write() to the RandomAccessFile will put it all back. As you search/replace, keep track of size. If the final file is smaller than the original, use a setLength() to the new size to avoid extraneous data at the end.

  • How do I use text to open two different flash files?

    Basically I want to use a flash file, which requires you to enter text and a button to click. If I typed in 'Movie 1' and clicked enter, it should take me to 'Animation 1.swf', if I typed in 'Animation 2' it should take me to 'Animation 2.swf'.
    I don't have the time to relearn flash completely even though I want to, I haven't used flash in about 3 years and really struggling to remember anything, hate being a novice
    Thank you so much

    Hi ,
    As Ned suggested you could use something like this -
    function startLoadingSwf()
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest(<name of the swf which you are picking up from the text field - text_field.txt>);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
    mLoader.load(mRequest);
    function onCompleteHandler(loadEvent:Event)
            addChild(loadEvent.currentTarget.content);
    function onProgressHandler(mProgress:ProgressEvent)
    var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
    trace(percent);
    startLoadingSwf();
    Hope that helps!
    Thanks and Regards,
    Sudeshna Sarkar
    Adobe Flash Professional Team

  • 3D PSD file import : how to change 3D anchor point in AE ? Challenge..!

    Hello everyone,
    I've successfully imported a 3D file from Photoshop Extended CS4 into AE CS4. In AE, I can sucessfully animate rotation of the 3D object.
    Here's the problem : I cannot change the 3D object's anchor point. I've tried changing the anchor point's coordinates on the controller layer of the 3D object layer, the numers change, but the anchor point remains at its initial position, as if it was locked.
    I also thought changing the anchor point in PS Extended before importing the file into AE, but PS Extended does not seem to have an anchor point changing tool.
    So I even reasoned back one step : changing the anchor point in my 3D software since the beginning. Well, not possible because PS Extended seems to create an average position for the anchor point when impoting a 3D file from a third party software. So useless changing the coordinates in the 3D software.
    Photoshop Extended 3D is the only possible workflow to import 3D objects into AE that I know of.
    So, is is possible to change the 3D anchor point directly in After Effects ? What blocks that point from being changed ?
    This is quite a challenging problem, good luck for finding a solution ! I'm very sure that this technique is commonly needed and used when working in 3D, and that it will be of great help for many designers that want 3D in After Effects !
    Thanks again !
    Note : please do not confuse simple After Effects standard 3D layer, with the 3D PSD file import layer, these are two totally different types

    Any further forward with this anyone?
    This is driving me insane as well...
    I'm trying to create a simple comp within AE and have my clients logo fly on behind their text while rotating in 3D space.
    The idea is for it to rotate on the X axis, but rotate within the logo itself (straight through the axis within the logo itself)
    But when I try to rotate it, the AP is about 2.5 "logo depths" away from the logo, so when the rotation of any axis starts it looks ridiculous.
    Are Adobe really trying to tell us that moving the AP is not possible within AE for imported Live Photoshop PSD files?
    Hopefully a solution comes along soon as I cannot for the life of me figure out a workaround to the problem......
    Cheers,
    Paul.

  • Is there a quick way to make a universal change across many InDesign/PDF files?

    We are a mid-sized manufacturing firm that produces many different versions of our product. For each of our units, we produce a set of technical instructions, using Illustrator and InDesign. Within each instruction manual, there are pages unique to the individual unit, and pages that are universal (boilerplate) across all of our manuals. We export each complete instruction manual to PDF for printing and placement on our website. At present, we need to make a change to one of our universal pages that appears in every manual. Is there a way to apply the change across all of our manuals without opening each InDesign file separately, updating the link, and creating a new PDF? That process is obviously time consuming and labor intensive considering the volume of files that will need to be updated. As such, any suggestions or recommendations would be appreciated. We would like to automate the process, even if it means updating our software or changing our method of producing instruction manuals.

    Basically - it sounds like they have Illustrator file that is common to many different inDesign files.
    And seems like they are placing some pages of a master document from InDesign within other InDesign documents.
    When they update a master document and make changes to it - they have to open and update all the modified links across all the documents.
    Using my method - you can select a base folder where all the InDesign files are residing.
    Run the script - and select "Update modified links before exporting"
    So in essence all the PDFs will be generated - and the modified link will be updated in each document.
    Plus all the InDesign files will update the modified documents.
    I do this a fair bit and it works for me very well.
    Unless I have misunderstood the problem here.

  • TS2771 My ipod touch will not hare no matter what and I've tried many different cables and different ways to charge it. What should I do? If I complain to the Apple store co. will they replace my ipod for free?

    My ipod touch will not hare no matter what and I've tried many different cables and different ways to charge it. What should I do? If I complain to the Apple store co. will they replace my ipod for free?

    - See:
    iPod touch: Hardware troubleshooting
    - Try another cable
    - Try another charging source
    - Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, cracked or broken plastic.
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Access all different attributes of a text layer in PS via extension

    Is it possible to grab all the different color, fontsize, fontname, ... attributes that make up the text in a text layer. In my tests it looks like each text layer had 1 textitem with just 1 set of attributes for color, size, font, .. There did not seem to be a way to find out everything about what makes up the text layer from within a PS extension. Is this possible?
    Thanks

    Worked it out, it should be
        $.writeln("Text item ",item.textRange.characterAttributes.size);
    Bit long winded but got there

  • 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?

  • I have a psd file with many layers and text. I want to edit the text. How do I do that?

    Hi all!
    I recently purchased a book cover from a creative....she charged me one amount for the jpeg file and another amount for the psd file and then there's another cost to edit the text on the back cover. Instead of paying all these fees separately I'm trying to edit the text on my back cover myself.
    The problem is I HAVE NO CLUE how to do this....anybody have any help to offer?

    In the psd file, on the right side you should see a panel that says Layers. Expand that panel if it is not already by clicking on it.
    Scroll down through the list in the layers panel until you find the text (there should be a large T for a thumbnail to show it is text)
    Double click on that large T to edit the text. (The text should now be highlighted and the Text tool on the left side of the screen should be selected)
    Type away then select any other layer to deselect the text
    If you do not see any large T capture your screen with the layers panel open, so we can see what layers are there.

  • 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.

  • How to import a text layer on multi-page document?

    Hi All,
    I have a slight problem and was wondering if there is a quicker solution?
    I'm working with acrobatproX
    I have been sent two pdf's form different sources. The first document is a 4c layer and the second is a translated text layer and
    I need to combine the two to check that the text is setup correctly and doesn't over run any images.
    I understand that I could import each text layer to a single page of the 4c but as it is a 256 page book?
    Is there a quicker solution than the one page at a time method?
    Many Thanks

    In PSE, to draw an empty circle use the elliptical marquee tool and hold down shift while you drag to constrain it to a circle. That will give you an empty selection, then go to Edit>Stroke (outline) selection. A window appears where you can choose the width and color of the stroke.
    However, I'm not understanding why you would want to create your business card in PSE rather than in Pages or equivalent. Is there a special reason for this?
    EDIT As for the text file, it would be simpler just to retype it in PSE, since it can't be very much text. Remember that PSE doesn't do all the fancy things with text that Pages can, although it can do some things (like warping) that Pages can't.
    You could activate the text tool and use copy/paste, but you'll lose most of the formatting.

  • Replacing all text in book with sample text

    Hello fellows,
    Is there a way to replace all the textual content in a book with some sample text using Extendscript?
    If yes, could you please point me to the relevant APIs?
    Thank you for your help in advance!

    Yes, the point that Rick was making crossed my mind, too. Using regular expressions, you can easily specify which characters should be replaced. Listing a number of same-width characters and replacing them with an "x" is as easy as this:
    sTextString.replace ( /[abcdefghknopqrsuvyz]/g, "x" );
    This would leave the non-mentioned characters as they are. Depending a little bit on the fonts that are used, of course, as they might have different character widths for more than the ones I left out. But even if you only replace a couple of characters throughout the doc, it would be enough to get the desired effect.
    The difficulty is getting to the text strings and also to replace them. There are many objects for which a GetText method exists, but you have to set the flags such that you actually get the right text strings out of that method. And then you have to figure out where in the doc the text string is, then delete the existing one and add the replacement. All of this has to be done without deleting any markers or anchors.
    Another approach might be to set the text location to the first character in the main flow and then walking through the entire document character by character, testing each one and replacing it where required. But I don't think you would get into tables with that method, as those are linked to the running text via an anchor in that running text. So the table cells will have to be processed separately. And if you do have a method to change text in table cells, you can use that method on all paragraphs.
    I think Rick has more experience in tweaking text strings. I am usually working on structured documents and only handling the element objects and their hierarchy, not so much changing the text content of documents. Rick, do you have an approach to walk through all text strings in a document and replace them without breaking anything ?
    Ciao
    Jang

  • Can't Relink/Replace PSD Files to New Source...

    Hi! I'm having a very odd problem. This file is called "red.ai".
    Each swatch is a clipping mask of a different, embedded .psd file. (Swatch 1 = Layer 1 = 1.psd)
    Each swatch is on it's own layer.
    What I need to do is make a copy of the "red" file, call it "green" (for example) and replace each swatch with the set of green .psd files. (I've got to do this for 10 colors!) 
    The problem is when I go to place OR relink from the Links window, the .psd file displays as red. Doesn't matter if I browse to the green psd files, purple psd files, or any other color. It's like it's stuck on the path to the red files. If I open a new Illustrator file, the psd's link fine.
    Help! I'm trying to keep from getting carpal tunnel. 
    Specs....
    PC
    Illustrator CS3

    I don't think that is the problem but I would create a new document and copy everything from the corrupt document and paste into the new one. Save it and see if it is working properly.

  • Editing text in an existing text layer.

    Running PSE 9 under Mac Snow Leopard.
    I have a family photo including many text layers.  I'm trying to edit the text in a selected large multi-line text layer.  I'm following the steps from the appropriate PSE Help article, but I always end up creating a new layer and the red/green no-go/go option.    I thought I should just be able to double-click the text layer and start editing.

    Can you post a picture somewhere from where we can download?  The above picture is flattened out and so we can't work with it to see what is happening.  Your file must have .psd file extension like the one I have uploaded here:
    <http://www.mytechnet.talktalk.net/text-test.zip>
    You will need t zip it before uploading it and post a link here for us to download it.  You can use dropbox to share files free of charge.
    G/L

  • How to Edit and Replace Psd Files in Adobe Flash - Help!

    Hi Everyone,
    I am new to flash and I am trying to build my first flash site using a flash template. I can use flash to edit certain components like header text, etc. But The content is impossible for me to change. I think that these are psd files, which I can open with gimp or another program and edit. I save and replace that file, but when I view movie again, the content is the same. I guess what I need to know is how to get these files back into my flash movie after I have edited them. Please help, I am no computer expert, but I am learning. A how to for dummies answer would be awesome.

    Maybe You should try the Flash-forum:
    http://forums.adobe.com/community/flash

Maybe you are looking for