Replace text in photoshop document & save

Hello,
I have to make apprieciation certificates for a committee. Is there a way to use Automator to replace text within a photoshop document (people's names) and then save each name in a different file?
Thanks!

In theory, at least, this should be possible through an AppleScript which could be part of an Automator workflow, at least with Photoshop CS4 (I don't have earlier versions to check in their scriptability). The AppleScript suite for Photoshop CS4 has a text-object function that offers a lot of control over a given block of text, so it looks like it would be doable. You might want to take this up in the AppleScript forum or, probably better, in Adobe's own Photoshop forum.
Regards.

Similar Messages

  • Find and replace text in multiple Photoshop files?

    Hi there,
    Let us say I have six Photoshop files: 1.psd, 2.psd, ..., 6.psd. All of these files contain the word “LoremIpsum” in random text layers, within each document. Is there a way I can search for “LoremIpsum” in all documents and replace it with “Dolor Sit Amet”, all in one go? This is just an example, I need to replace various words, not just one.
    I have tried "batch find and replace" software (including powerful tools like Power Grep) but they do not work with psd files… Is there a javascript of external plugin for this kind of task?
    Thanks!

    You’re welcome, advice given here is free.
    If you want to donate something nonetheless you could do so over at
    http://ps-scripts.com/bb/
    Many of the same people used to contribute there as here and I for one have benefitted considerably from their generous advice on Scripting issues.
    A Script can read (or create) txt files, but I do not have a lot of experience with this.
    This might work (amend the line »var theTexts = readPref ("….txt", false);« according to your txt-file’s path):
    // replace text elements in type layers;
    // 2013, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
              for (var n = 0; n < app.documents.length; n++) {
                        app.activeDocument = app.documents[n];
                        app.activeDocument.suspendHistory("replace text", "main()")
    // the opertation;
    function main () {
              var myDocument = app.activeDocument;
              var theTexts = readPref ("….txt", false);
              var theArray1 = theTexts.slice(0, Math.round(theTexts.length/2));
              var theArray2 = theTexts.slice(Math.round(theTexts.length/2), theTexts.length);
              alert (theArray1.join("\n")+"\n\n\n"+theArray2.join("\n"))
              for (var b = 0; b < theArray1.length; b++) {
                        replaceText (theArray1[b], theArray2[b])
    ////// reoplace text //////
    function replaceText (replaceThis, replaceWith) {
    // =======================================================
    var idreplace = stringIDToTypeID( "replace" );
        var desc22 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idreplace = stringIDToTypeID( "replace" );
            ref3.putProperty( idPrpr, idreplace );
            var idTxLr = charIDToTypeID( "TxLr" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idAl = charIDToTypeID( "Al  " );
            ref3.putEnumerated( idTxLr, idOrdn, idAl );
        desc22.putReference( idnull, ref3 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc23 = new ActionDescriptor();
            var idfind = stringIDToTypeID( "find" );
            desc23.putString( idfind, replaceThis );
            var idreplace = stringIDToTypeID( "replace" );
            desc23.putString( idreplace, replaceWith );
            var idcheckAll = stringIDToTypeID( "checkAll" );
            desc23.putBoolean( idcheckAll, true );
            var idFwd = charIDToTypeID( "Fwd " );
            desc23.putBoolean( idFwd, true );
            var idcaseSensitive = stringIDToTypeID( "caseSensitive" );
            desc23.putBoolean( idcaseSensitive, false );
            var idwholeWord = stringIDToTypeID( "wholeWord" );
            desc23.putBoolean( idwholeWord, false );
            var idignoreAccents = stringIDToTypeID( "ignoreAccents" );
            desc23.putBoolean( idignoreAccents, true );
        var idfindReplace = stringIDToTypeID( "findReplace" );
        desc22.putObject( idUsng, idfindReplace, desc23 );
    executeAction( idreplace, desc22, DialogModes.NO );
    ////// read prefs file //////
    function readPref (thePath, binary) {
      if (File(thePath).exists == true) {
        var file = File(thePath);
        file.open("r");
        if (binary == true) {file.encoding= 'BINARY'};
        var theText = file.read();
        file.close();
        return String(theText).split(",")
    In this case the comma is used to split the text into Strings in Arrays, if your search/replace texts include commas you could use something else, I guess.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • Parsing and replacing text items in a word document?

    Hi,
    I was wondering if someone could point me in a
    good direction as to how I would store word documents
    in the database as BLOBs but then be able to open
    them in plsql and replace tags with values and
    save it as a new document???
    Thanks in advance!

    There are examples in the interMedia User's Guide on loading documents into OrdDoc type objects. Once you do that, you should have a relational interface to the object. Depending on the specific features that the Word plug-in supports, you may be able to edit the document in place via PL/SQL.
    I'm more familiar with the OrdImage object, which provides most of the basic image manipulation routines for most image formats. I assume that the OrdDoc object provides a basic document manipulation API as well.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Use Powershell to replace text with image in Word document

    I have a powershell script that uses a Word document as a template to create signatures that I am pushing out to my organization.
    The document is populated with text formatted the way I want the signature to look, that I then do a FindText and ReplaceText on.  This works fine for replacing text with text, but I can't figure out how to properly replace some of the holder text with
    an image and a link.  I found a few posts about adding images to word documents, but none that seem to work properly in this scenario.
    Any insight would be greatly appreciated, thanks!

    Dear BOFH,
    You are correct that method I outlined is not for inserting an image into a signature block (which would be in Outlook, not Word).  The links you post do certainly deal with outlook signatures, well done... Except that the question was about how to
    use a Powershell script to replace text in a Word document with an image.  Sure it was framed in the context of creating signatures, but the poster expressed that they already had a method of generating and replacing text, and just needed to know, as
    I did, how to do the thing they actually asked.
    Please BOFH... Please forgive my audacity in hoping to find a reference (any reference) to how to replace Word text with images via Powershell in a thread titled "Use Powershell to replace text with image in Word document".
    This is certainly a scripting question, and even something as simple as "You will need to call the .NET methods for the Word find/replace functionality.  Please ask in the Word forums for the correct method to use. 
    If you need help on calling .NET methods look HTTP ://here"support you offered combined with the contempt you offer in response to my actual substantive help to the actual question asked.
    BOFH, you are not better than us, just more arrogant.
    Can you please start your own question as this one has been closed.  Please see scripting guidelines.
    We cannot guarantee you satisfaction as this is a user supported forum.  The is no SLA for community support.  Perhaps if you posted a better worded question as a new topic someone might be able to help you resolve your issue.
    The topic you are posting on is closed and answered.
    ¯\_(ツ)_/¯

  • Documents save but text disappears

    I have used appleworks just fine for 8 years now, but in the last couple of months i have noticed my documents will save but the text from the last save will be deleted. for example: i save a document on monday, edit tuesday, and on wednesday the editing i did on tuesday will be gone. it never deletes a file, just the text inside. and if i saved in 2 different documents, only the last used document will have missing text. even if i save multiple times while the doc is open, it is still gone. what can i do to fix this???

    Hi northcanon,
    Welcome to Apple Discussions and the AppleWorks forum.
    Whenever AppleWorks stops working correctly, the first step is to delete its preferences files.
    Quit AppleWorks, then in the Finder go to:
    yourname > Library > Preferences.
    In the Preferences folder:
    -locate and delete the file com.apple.appleworks.plist
    -locate and open the folder AppleWorks
    --delete the two cache files and the AppleWorks Preferences files in this folder.
    --IF you have problems related to the Button Bar, delete the AppleWorks Button Bars file in this folder.
    AppleWorks will create new, clean copies of these files as they are needed.
    On another forum, a hint was posted that I think pertains to this problem.
    The hint was to press command-S, wait for the action to finish (ie. the highlighted File menu returns to its normal black letters on white), then press command-S a second time. The File menu heading will highlight briefly.
    Regards,
    Barry

  • Keynote: Replace Text under Document Warnings Gone?

    One of the most critical features I use in Keynote 5.3 on nearly a daily basis is VIEW > SHOW DOCUMENT WARNINGS > REPLACE TEXT for missing fonts.
    Is this feature gone?
    I'm in the process of testing out Keynote 6.1 to compile a list of all the bugs and missing features. So far it looks like when I open a file with missing fonts, I get a vague warning note that "some of the fonts are missing / might not appear correctly" but there doesn't appear to be any detail, or any option to replace them with other fonts.
    I hope I have overlooked something. Can anyone else weigh in on this, please?

    Try this repair for Keynote 6.2,  ensure you complete all the tasks and in the order shown:
    1  delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update,
              its a freeware application
    2  restart the Mac;   Apple menu > restart
    3  immediately after the start chime,  press the shift key until you see the Apple symbol.
             let it fully boot up,  it will take longer as the OS is repairing the drive
    4  when fully booted, go to Applications > Utilities > Disc Utility;
              click on the boot drive  then First Aid tab and      click  repair disc permissions
    5  when complete, restart the Mac normally
    6  install Keynote from the Mac App Store
              Please report back to let us know if this helped.

  • Save text of textarea and reuse it to replace text in textarea

    hi everyone
    Is it possible to save text of textarea in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea?
    I tried saving htmlText of textarea but the problem is when i replace it in textarea <p> tags causes problem. There will always be another extra line.
    Is there a way to do this?
    Thanks alot for any help.
    Regards

    If anyone wants to view <p> tags problem try following. Just click on text and then move your down arrow key, cursor will go to next line.
    import fl.controls.TextArea;
    var txtHTML:TextArea = new TextArea();
    txtHTML.move(0,0);
    var default_format:TextFormat = new TextFormat();
        default_format.font = "Arial";
        default_format.bold = false;
        default_format.align = "center";
        default_format.color = 0xFFFF00;
        default_format.size = 14;
    var field:TextField = txtHTML.textField;
        field.defaultTextFormat = default_format;
        field.setTextFormat(default_format);
        field.alwaysShowSelection = true;
        field.background = true;
        field.type = 'input';
        field.multiline = true;
        field.backgroundColor = 0x777777;
        field.embedFonts = true;   
        txtHTML.htmlText = '<P ALIGN="CENTER"><FONT FACE="_sans"
    SIZE="14" COLOR="#FFFF00" LETTERSPACING="0"
    KERNING="0">ASDF</FONT></P>';
        field.x = 0;
        field.y = 0;   
        field.width = 400;
        field.height = 200;
        field.text = "";
    addChild(txtHTML);
    Regards

  • Batch replacing text (doing translation) in 50+ pretty much identical documents?

    Can I batch replace text for several pdfs when translating 50+ identical documents? Only certain values/numbers differ in each document.
    I am new to Acrobat, and I am currently just copying and pasting between my first translation of a document and the ones I have not translated yet.

    No, and you shouldn't attempt to translate a PDF file directly. This type
    of task should be done on the original file format and then a new PDF file
    should be created.
    On Tue, Mar 3, 2015 at 3:33 PM, josteinb80906302 <[email protected]>

  • Adobe photoshop cc crashes/ work area goes black when i try to insert text to a document ?

    when i have eddited a photo and want to insert my watermark when i press the text tool the document goes black this also happens when i create new document and try to make a watermark but when i select another tool the photo re appears can any one help me already been on phone to adobe support they told me to reset all preferences but its stilkl hasnt worked
    thanks scott !

    Windows 8?
    Upgrade the video card driver from the GPU maker's website (NOT Microsoft or a system builder).

  • How can i replace all parenthesis text in a document ?

    Hi everyone !
    I'm a designer and i know nothing about scripting. But actually i would like to remove a bunch of text.
    I am working on a map, and i need to get rid of all text in parenthesis (the parenthesis included in).
    I know there will be a faster and efficient way to do it by scripting, but i don't know how to get to that.
    please, if someone can help me it would be nice from him/her.
    i'm a kinda worried, because the whole thing is not less than a job for developpers.
    anyway, i had to ask before.
    thx a lot for your responses.

    Hi Paapichan
    You want a script that analyses all the text in the document and remove any text inside parenthesis (including parenthesis) right?
    Let´s explain some problems:
    1. If your text is inside a locked layer or sublayer or it´s locked itself then it would perhaps be necessary first unlocking these (this can be included in JavaScript code).
    2. If you text is inside symbol, or envelope and others...then JavaScript wont be able to acess such structure.
    What´s the version of your Adobe Illustrator?
    Give more infos about the exact scenario perhaps I can help you
    Best Regards
    Gustavo.

  • Editing text in Photoshop CS3 file causes crash. File originally created in Photoshop CS6

    Trying to edit text in Photoshop CS3 file causes a crash - Tried on multiple PC's
    File originally created in Photoshop CS6 with "Maximise PSD/PSB File Compatibility" set at "Always".
    Document size A4, using Arial Regular. RGB. 8Bits. 72dpi
    Colour Profile: sRGB IEC61966
    Multi business licence for CS3 and CS6 Design Standard/Premium/Master Collection all on PC
    Please Help!

    Interestingly I have found that if I modify a document in CS6 from an earlier CS3-CS5 document and save it - it works fine. But if I create a new document in CS6 the issue persists.
    Looks like I will be modifying old documents for the time being
    Would be grateful for some advise eon this.

  • Photoshop document images displaying less saturated in Photoshop only

    Hi there,
    I seemed to have either clicked on an icon or pressed the wrong shortcut somewhere but now my photoshop documents are displaying less saturated or sometimes psychadelic in Photoshop. Here is an example:
    (the first pic is the way it is meant to display, the second is how it is displaying..
    When I use the colour picker to select a colour from anywhere inside the picture it does pick up the actual colour and not the desaturated/strange colours. Also when I save the document out as a jpeg or anything and open it into something else other than Photoshop it displays correctly. Whatever it is is making Photoshop display ANY document that I open in that way. Really frustrated please help!!!!
    Kind Regards,
    Michelle

    Hi there,
    Thank you for your replies. Here is the screenshot:   How do I replace the display profile?

  • Copying text from Photoshop to InDesign

    Dear InDesign Community,
    I am working on updating a 60 page .pdf which was is extremelly blurry and unsearchable because each page was individually created in Photoshop (CS6) at size 8.5x11 and then put into a 6x7 sized document via Microsoft Publisher ( I weep as I write this sentene). I am currently rebuilding the file in InDesign and I was wondering if there was any way to copy and paste the formatted text from Photoshop cs6 to Indesign cs6 without losing the formatting. The end product is supposed to be a good quality pdf for web that is also a searchable document. Please advise.

    No, sort of. If you can live with the text EXACTLY as it is in
    Photoshop, kill all the layer except the text and save as PDF from
    Photoshop. Place the PDF in InDesign and it will retain its vector
    properties and formatting. You will not be able to edit anything.

  • Trouble with "add note to replace text" annotation

    When I use "Add note to replace text" in Reader XI, the note acts as if it is locked even though it is not. The Locked box is not checked, but yet the options are grayed out; and I cannot delete the note, though I can edit the text box. "Strikethrough" and "Insert text at cursor" work fine.
    I am using the latest update of XI and have uninstalled and reinstalled it several times; I've also tried various older versions of XI. It happens with documents I've created or documents others have created; it happens on docs created from Word or those created from InDesign; it happens on docs downloaded several years ago as well as ones from the past month.
    I CAN delete these add-and-replace notes if I receive a file with them already put there by someone else--I just can't delete my own that I am adding right now. When I send the pdf to other people they have the same problem--in fact, someone told me that in her case ALL of my notes appear locked, not just the Add note to replace text one--yet when I send it to her, on my side, I have not locked any of them.
    Also, I do seem to be able to delete my own annotations I put on documents fairly recently--I have files from Sept 9 and Sept 17 that I can do this. But if I try to add notes to those same docs now, they act just like all the other ones--I cannot delete those particular notes and they appear locked.
    Help please!!

    You could write an html-text file that revers to the image file
    after that you could even convert this html-file to an rtfd file (which is a package after all) using textutil

Maybe you are looking for

  • Offline Approval Program

    Hi, We are implementing the offline approval functinality. I have done all the settings related to that. We have scheduled a back ground job to run the report RBBP_NOTIFICATION_OFFAPP, which will trigger the approval mail with offline approval link e

  • Lost Sliders in Tone Curve Dialogue 3. & 3.2

    Windows XP- I cannot retrieve region sliders in Tone Curve in Develop module. Point curve still visible & useable. Can't find any info under communities. Anyone any ideas please? No problen on laptop Win 7 64. What have I done? Allan Devon

  • Problem deploying webservice client app

    I have a JAX-RPC webservice client application which works flawlessly from within JDeveloper 10.1.3 EA1. However, after deploying the application and running it, I get the following error which I have been unable to trace to a missing library: Except

  • Send 10g reports directly to the default printer of the client machine

    Hello.. We are using Oracle DS10g and Forms & Reports service 10g. When the user clicks on the report button I want to send the report directly to the default printer installed in the client machine. In this case the printer name may vary and I canno

  • How to fix error 507 on 9780!!SOS

    How to fix error 507 on 9780!!SOS today i wanted to add the other language.. so i used the desktop software for mac, and it always goes wrong.  suddenly..the screen showed: Error 507...   How can i fix it??? How can i add other language on my BB 9780