Change the color of the text in several .psd with actions

Is there a way to change the color of the text layers in several files in .psd (with a different text in each of them) with actions?

All the files that I have to do that with are structured in the same way - background and above a layer of text.

Here are the basics...

#target photoshop;
main();
function main(){
//select folder where PSDs are held
var selectFolder = Folder.selectDialog( "Please select folder of PSDs");
//if no folder selected quit.
if(selectFolder == null) return;
//get an array of all PSDs in the folder
var fileList = selectFolder.getFiles("*.psd");
//iterate through file list
for(var a in fileList){
var textColour = new SolidColor();
textColour.rgb.hexValue = "00ff00"; //set colour to green
open(fileList[a]);
activeDocument.activeLayer = activeDocument.artLayers[0];  //Select top layer
if(activeDocument.activeLayer.kind == LayerKind.TEXT){ //check if it is a text layer
activeDocument.activeLayer.textItem.color = textColour; //set text to colour
activeDocument.save(); //Save changes
activeDocument.close(SaveOptions.DONOTSAVECHANGES); //Close document
}else{//not a text layer so close document
 activeDocument.close(SaveOptions.DONOTSAVECHANGES); //Close document
 }
}//end of filelist
};

Tags: Photoshop

Similar Questions

  • How to change the extensions on several files with Windows 7?

    * Original title: Extentions

    How to change the extensions on several files with Windows 7?

    You hear no doubt, is that your movie software will only recognize certain types of image file formats.  If this is the case, you will need to reformat format files to any format PNG is recognizable by the software.

    Rather than we guess, please identify your «film» software

    Download and install IrfanView, which is a free utility for images.  http://www.IrfanView.com/

    IrfanView has the ability to read a great many formats of image files.  It can also convert image files formats.  And even better - for you - it can do all these things on a batch of files.

    As test, after I installed IrfanView, open one of your PNG files.  Now click on file > save as, and select the 'Save as Type' to be little matter the file type of your movie software will accept.  Save the file.  Make sure your movie software can accept the new file.

    Once you are convinced that you can modify files that you have in a format that you can use, use IrfanView

    File > Batch Conversion/Rename command.  If necessary, see IrfanView help on this topic.

  • Try to change the text on a memorial with image.jpeg

    When I paste my picture/text in Notepad or wordpad, it still display in a kind of code. I can't read or do anything, including the image. How can I make it stick to look exactly as it is in my photo file?

    When I paste my picture/text in Notepad or wordpad, it still display in a kind of code. I can't read or do anything, including the image. How can I make it stick to look exactly as it is in my photo file?

    ========================================
    Notepad and Wordpad are not image editors.

    Try Windows Paint:

    Windows Vista-
    Open Paint
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Paint

    With the help of paint
    http://Windows.Microsoft.com/en-us/Windows-Vista/using-paint

    Paint tools
    http://Windows.Microsoft.com/en-us/Windows-Vista/paint-tools

    Adding text with Microsoft Paint
    http://www.peddlergraphics.com/PaintText.html

    Add text to a picture with Windows Paint
    http://www.pcdon.com/deAddingTexttoaPhoto.html

    Or program with a better interface and
    more options... try Picasa free software:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    More info...

    How to add text to your Photos using
    Google Picasa 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Change the text color with the eyedropper tool

    I've seen cc Photoshop tutorials where you can change the text color by using the eyedropper tool on the color swatch Panel. When the text is selected and the color swatch Panel is open. When I chose is which color I want out the color swatch Panel all them it does to change the foreground color and return to the soil box, why it changes the color of the text, as I have seen in tutorials?

    Any help would be appreciated.

    Thank you

    Rchjr

    When highlighted often is difficult to tell what color the text. You can work around this by doing the above, pressing ctrl-H or cmd - H on the keyboard and the highlight will be removed, but the text remains selected. Its exactly the same procedure that you use to make the mobile dotted lines disappear just leaving an active selection. Obviously the text tool must be still in use for all this to work with text.

  • DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    Hi taraf32044550,

    I think the new user interface can be a bit of a learning curve, but I hope that you really like it when you find your bearings. Please check these tutorials will help you to find your way around: Acrobat DC Learn & support.

    In particular, I think that you will find this tutorial very useful: change text and images in PDF files

    Best,

    Sara

  • How do you change the font in several text boxes?

    I just started using illustrator and I can't understand it.  Maybe someone can point me in the right direction.

    I made a bunch of text boxes using the text tool.  Is there a way I can link the boxes and easily change the font?

    Thank you

    Justin

    No need to link them. Select all, and then change the font.

    As with any other object, many text objects can be selected by shift-click or drag with the rectangle Selection tool. If you make a habit of placing all the text on a dedicated layer, you can lock the other layers and just select all (Cmd + A Mac / Win Ctrl + A).

  • Acrobat Standard DC - can't change the text and text box properties

    Earlier this week, I lost the ability to change the properties of the text and text boxes.

    When I add a comment with a text box or in the text caption, I do all the time, I used to be able to change the font color, size, alignment, etc.

    Now, when I go to insert a text box or the legend, all the options in the properties bar are grayed out.

    This issue effects ONLY the text in the box and the caption functions. all the other drawing functions work very well. I can change the color, fill and the type of lines around the text, I can just change the text.

    Any suggestions?

    Thank you.

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • Cannot change the text box.

    Adobe Acrobat DC recently auto updated to the latest version, and it seems that the new version does not change the text boxes.

    The screenshot below shows what I mean.  I added a text box and pointed the police to change the size / font style / color, but it is gray just to go out in the toolbar properties (Ctrl + E)

    ADOBE CANNOT EDIT TEXT BOX.JPG

    Has anyone experience this problem?

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • How to extend the text on several pages in 9

    My form is long and a section of the Master Page will be text with no shape field, but the text is 10 + pages, depending on the version of the terms and conditions described.  In this link, http://forums.adobe.com/message/5112687, there are a lot of discussions about how to accomplish in 8.2, but how I would accomplish in 9?  I wish I could paste pages 10 + and automatically do master stream for this section of the Page. Have tried to place a text field and also tried a text in a fluid subform, assigning several lines, keep later, but is not only of course how to set up properly.  I see the sign at the bottom of the text box, but when I saw it, it does not flow to the other pages.  Hoped to avoid setting up 10 + pages in the form, from the time these terms are updated, and it would be much faster to just be able to copy and paste from Word in a correctly set text field or subform.  Hope that makes sense and to appreciate all the advice, thank you.

    1. Get your text in Word (or anywhere where you want to change the text so that it looks right).
    2. Open a document in LiveCycle (a new one if you are starting from scratch, in any case)
    3. Select your subform page1, set the content to be Flowed (allow page breaks automatically).
    4. Add a text field (make sure it is listed under this subform page1).
    5. Change the position of the legend to zero text box and make sure allow multiple lines is verified (as well as allow page breaks). Expand a height fixed auto
    6. Click the default value for the text field. Paste this 9 page document inside.
    7. Wait a few seconds (or minutes) for LiveCycle catch up.
    8. Listen to samples and enjoy your new document with several pages paged automatically for you.
  • change the text between the loops

    I have to update an ad that has been previously created. The original pub consists of a picture and a text and logos which loop two times then stops. Publication constraints require the announcement that two loops and a certain amount of time and stop at the end of the second loop - this was done in the original pub. The customer asked where a banner appears in the ad with specific information ('apply now for the half of January... (''), changes to information in the second rotation (loop) of the ad ("at an open house date") I'm trying to find a way to do it given the limit to two loops and a time constraint. I had to condense and edit the first draft to address the constraints, so I'm not sure that I can do almost anything with the timeline? Is this a problem of action script?

    I work in CS4 and YOU 2.0

    Any help is appreciated

    Thank you

    While Actionscript could be used to solve the problem, it is not necessarily the only solution.  You could spend with two loops and extend the timeline for the equivalent length of two loops, and change the text in the second half, repeat all that happens twice during this extended period of time.

    To take an Actionscript approach to solve, you can do a simple logic check to change the text.  There are several approaches, you could take, being...  Start with the (dynamic) textfield is empty.  First check if the textfield object contains the first loop of the text and if it then assigns the second loop, but if not, assign the first text.

    If (tfield.text == "Apply now for the half of January...") {}

    TField.Text = "to a date of open doors";

    } else {}

    TField.Text = 'apply now for the half of January... '. » ;

    }

  • (CS4) How to change the text in the character format?

    Hello scripters.

    I need help with a problem with "FindChangeByList":

    I want to change the text with special elements (and more than one element),

    for example: color: black AND italic AND subscript

    (high, critical, or small caps)

    and change in a character format that I have before defineted

    (lets call it for example "01 - xyz").

    As I understand it, I can do it with GREP and 'FindChangeByList-sript.

    But what should remain here '?

    grep {"find what:"?} "} {" change to: "?} "} {include notes: true, include master pages: true include hidden layers: true, any word: false} find all double spaces and replace them with single spaces.

    Can someone help me, please?

    Your Oliente

    http://Kasyan.HO.com.UA/downloads/RecordFindChange_CS3_Kas.zip

    This script writes the current preferences of find/replace in a text file so that you can copy and paste the in a list file search/replace. It will be useful for those who use the FindChangeByList.jsx script and have trouble with editing files FindChangeList.txt
    Written by Martin Fisher (I made a few minor changes: translated from the German text into English)

  • Change the text in the textfield does not work

    Hello!

    Another problem, I do not know how to solve:

    I have a dynamic textfield, which lies in a graph, and based on this graphic I designed a movieclip with interpolations of fade-in and bland-out of this graph.

    However, when I play the movieclip (ctrl + enter) and I want to change the text in the textfield with textMovieclip.textfield.text = "NewText"; the text is correctly set, but the textfield object disappears from the display. When I play this movieclip with the defaulttext I put in the textfield (without changing this text) everything works fine.

    Fonts required are integrated, I is not serious if I change the text before playing the movieclip or after and textfield is not only in the back behind the scenes. And for example to change the color of the defaulttext works without any problem.

    What have I forgotten? Do I have to put another value also?

    Welcome, Tschouba

    It's not like you have activated your textfield object autoSize property. or is your hidden textfield? and using something else than a simple 'u' in music and about?

  • How can I change the text in the Messages to the vertical?

    How can I change the text in the Messages to the vertical?

    If you mean change the orientation, simply turn the phone. If this does not work, close Messages and then run again.

    To close the Messages, press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close.

    If it does not, the strength to restart the phone. No data is affected by this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

  • Change the location of several pictures at the same time?

    I see how to change the location of a photo at a time. Is it possible to change the location of several pictures at the same time?

    Thank you

    Phil

    Select the photos and info - enter the location (or any other field of the info) and it is applied to all photos

    This is described in using Photos - a good place to get help with Photos

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.

      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    LN

  • How can I add a right click Menu mouse to click 'CANCEL' * and * "REDO" button to change the text in Firefox?

    How can I add a Menu with the right mouse button to display a "UNDO" AND "REDO" button to change the text back in Firefox without losing or forgetting the changes as I can under Google Chrome? -OMG I told dinnt - SORRY!

    Glad you stuck with this issue cuz I pulled a real boner trying to fix. I was totally distraught on the main menu of * two * UNDO and REDO. If you remember that I tried to install the menu shortcut for UNDO them and REDO and totally rejected the idea that they might be under Edit on the crazy Main Menu which of course, they have been and worked like a charm. THANKS again man, you are a true hero!

Maybe you are looking for

  • Question sleep W510

  • Treiberinstallation PSC 2355

    There're einen speziellen Druckertreiber mit Scanfunktion? End der HP-Treiber, scannen works leider nicht, dass schon eine new Version installed ist, und XP oder das HP-Instprogramm Lee dann AB Der Erfolg ist dann die Aufenthaltsraume.man Druckfunkti

  • FRUAD REPORT

    HOW CAN I REPORT SOMEONE WHO IS $ USING THE SAME DISK OR DISK COPYED OF WINDOWS, LOAD UP TO 150.00

  • Update auto advantages/disadvantages

    Hello I use an EA3500 in comibination with a bridge of WES610N as part of my home network. I got the game EA3500 for update manual (I don't think that there was a firmware update in over a year), but wonder if he would have no problem by changing the

  • The difficulty to print anything on the hp deskjet printer 1050

    Hi there it is a last resort arrive on this forum here for me. I recently bought an hp deskjet printer 1050 and had major problems of printing with it to be honest. I managed today to finally print a page of alignment/test print with 4 boxes of color