# Updating psd file

**URL:** https://www.finalbuilder.com/forums/t/updating-psd-file/859
**Category:** Discussion
**Created:** [June 2, 2008, 6:08am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859 "2008-06-02T06:08:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![invis.net](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/57b2e6/32.png) [@invis.net](https://www.finalbuilder.com/forums/u/invis.net)
#### Post date: [June 2, 2008, 6:08am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859/1 "2008-06-02T06:08:12Z")

</div>

Is there a way in FB6 to update the text in a layer in a PSD file? I don't need to change the formatting or anything like that - just the text.

Any ideas?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 2, 2008, 7:12am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859/2 "2008-06-02T07:12:51Z")

</div>

Hi Charles,   
  
Photoshop has a scripting architecture, so you should be able to create a script which updates the layer, save the script to a Photoshop .jsx file (or similar) and then use FinalBuilder's "Shell Execute" action to open the .JSX and run it in Photshop.   
  
See here for some guidelines:   
[http://partners.adobe.com/public/developer/photoshop/sdk/index\_scripting.html](http://partners.adobe.com/public/developer/photoshop/sdk/index_scripting.html)   
[http://www.adobeforums.com/webx/.ef7f2cb.59b55b6d](http://www.adobeforums.com/webx/.ef7f2cb.59b55b6d)   
  
If you use the "Shell Execute" action with the setting"open", this basically does the exact same operation as you would get by double-clicking the file in Windows Explorer - ie for a JSX file, it will run it in Photoshop.   
  
The catch is if you want to parameterize the script, ie by choosing a different PSD file each time. I think you will then need to load the data from a text file, or use the Text Find/Replace action (or similar) to update the .jsx script file with each new filename, before running.   
  
Good luck.   
  
Regards,   
  
Angus

---

<div class="post-metadata">

### Author: ![invis.net](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/57b2e6/32.png) [@invis.net](https://www.finalbuilder.com/forums/u/invis.net)
#### Post date: [June 3, 2008, 9:11am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859/3 "2008-06-03T09:11:24Z")

</div>

Thanks for the suggestion Angus, but (you knew that was coming) it's not going to solve my problem:

1. I only have access to PS7, not the CS series. The cost of upgrading just so I can script a text change is insane.
2. Once I get around to setting up a dedicated build server I'd have to install PS on that too. That's an even more insane cost.

I've looked at using GIMP instead, but that doesn't have the basic features I need, and while I could export the PSD and script GIMP to add the text I won't be able to branch the PSD with the rest of the source.

Can I trust Text Find/Replace to handle a PSD? It's a bit of a hack, but in this case it'd do the trick....

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 4, 2008, 1:17am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859/4 "2008-06-04T01:17:58Z")

</div>

Hi Charles,   
  
 Sorry to hear that. If the text actually is visible in plaintext in the PSD file, you might be able to make that work, although it’s definitely an unsupported configuration. I don’t think that Photoshop would handle some things, like (For example) changing the length of the text in the file. Good luck.   
  
 Maybe someone else knows of a command line tool which is capable of editing properties like this in the PSD?   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 4, 2008, 2:24am UTC](https://www.finalbuilder.com/forums/t/updating-psd-file/859/5 "2008-06-04T02:24:49Z")

</div>

Just a random thought which probably isn’t going to be useful to you… but… you can add text to a PDF file using the PDF Insert Text action. We’ve used this action ourselves to send out vouchers (in PDF format) with unique codes.
