« Wordpress Fluency Admin | Home | Proximedia, Internet has no name »
PS_BRAMUS.TextExport 1.3 – Automatically export all Text layers from Photoshop PSD to a Text file (PSD2TXT)
Colleague Johan asked whether someone could knock up a script which exports all text layers from a Photoshop document to a text file (viz. a PSD2TXT tool/script), enabling one to slice even faster than he already can. Last week I released the first version of the script (v 1.2), now it’s time for an update.
What has changed?
- UPD: Base rewrite, now gets all layers (sets & regular ones) in one variable.
- UPD: Gives a nice warning, instead of a javascript error, when no file is open.
- ADD: Layer Path & Layer Name in export.
- ADD: Cycle Multiple Files when more than one file is open (user can still choose to only parse the current document though).
Download PS_BRAMUS.TextExport (PSD2TXT)
Update November 2008:PS_BRAMUS.TextExport is outdated and has been replaced with PS_BRAMUS.TextConvert which does both import and export!
Right here:
Installation / How to use
- Download
PS_BRAMUS.TextExportfrom the link above - Extract it to Presets/Scripts folder of your Photoshop installation folder (defaults to C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts on Windows)
- Restart Photoshop if it was already running
- Open the PSD you wish to export text from
- Now, when having a file opened, go to File > Scripts and select PS_BRAMUS.TextExport.1.3 from the list.

- Wait until the output file appears
Configuration
Three settings in PS_BRAMUS.TextExport can be configured, all to be found in the .jsx file itself.
- Open up
PS_Bramus.TextExport-1.3.jsxwith your favorite texteditor - If you want to choose where to save the file to, set
useDialogtotrue. If set tofalse(default), the output file will be saved into your documents folder - If you don’t want the exported file to be openend after the export has run, set
openFiletofalse. If set totrue(default), the output file will automatically be opened by your default text editor. - In the export file, each line is separated by a
separatorstring. Change this one to use one you like (defaults to*************************************).
When running PS_BRAMUS.TextExport on multiple files, the useDialog & openFile parameters will be overriden. All files will be saved as nameofyourpsdfile.txt in your documents folder and only a notice that the files were saved will be shown.
Example
I’ve tested PS_BRAMUS.TextExport with a pretty complex PSD, which holds the design of 3RDS. Here are the results:
Input PSD
Output TXT
Make a donation
It certainly is no obligation but it would most certainly put a smile on my face
Tags
About this entry

Mar 16 2008 / 2:07 pm


Best of Bram.us
Start getting used to scratching and smudging the iPhone with this Flash based iPhone Simulator
Automatically wrap/float/contour text around freeform images using CSS for usage in (X)HTML pages.
Pimp Your Firefox to be a web all-star
A look at the inc.common.php, spreading handy functions.
Photoshop Script inspired in the Chlomoscript to unobtrusively pimp photos you have taken.
Methods to adding file management options to TinyMCE (Part 1), Extending TinyFCK (Part 2) and PHP file uploads overview (Spinoff 1).








Trackbacks/Pings
[...] This version is now outdated, please download a newer version here [...]
[...] Bram.us » PS_BRAMUS.TextExport 1.3 – Automatically export all Text layers from Photoshop PSD to a T… Photoshop?????????????????? (tags: photoshop scripts) [...]
[...] Bramus has just released a Photoshop plug in that exports all your Photoshop text, well, as a text file. I can think of a few neat uses for this so check it out. [...]
[...] Mas informacion y Descarga Este articulo fue escrito por: [...]
[...] Mas informacion y Descarga Este articulo fue escrito por: [...]
[...] extract all text strings from a PSD file into a TXT file? Sure, it’s possible, thanks to PS_BRAMUS.TextExport, the PSD2TXT script I wrote a few months ago. Now, what if you wanted to do that in the opposite [...]
[...] Bramus has just released a Photoshop plug in that exports all your Photoshop text, well, as a text file. I can think of a few neat uses for this so check it out. [...]
[...] Bramus has just released a Photoshop plug in that exports all your Photoshop text, well, as a text file. I can think of a few neat uses for this so check it out. [...]
Comments
Yarr
we probably need to get the word out a bit more, I think a lot of people could use this but don’t realize what a time saver this could be.
I am writing a text exporter for PS, so I surfed web and found yours.
the thing is….I need to get every character in a text string, and write each character out as ASCII Unicode hex to a text file.
like this…..
0×0043, // LATIN CAPITAL LETTER C
I tried Constants PrintEncoding and SaveEncoding, but no luck
got any suggestions?
thanks
Guess i’m slow today, but when is this script helpful? I am trying to picture a scenario when you have so much text in a photoshop file that you could use this script, but i can’t get one made up in my head.
An example please?
Nevermind, i totally oversaw that it could come to use when in slice mode. Never did that
I’ve been searching for this functionality for quite a while… with no luck.
A coincidence I stumbled across this page.
A cool script!
Do you have plans to create a text importer script?
one that opens a text document into a Photoshop text layer.
…The amount of text i’d need to bring in requires a batch process.
just a thought
thanks
Jeff
This scenario is helpful when comparing the text in the PSD to a copy deck (requirements document) in a corporate environment
I’m not seeing all the text outputted… but i did get an error about no having the correct fonts when the psd loaded… could that be the culprit?
@Jeff: that’s possibile, but will look a bit cluttered as you’re inserting lots of text all in the same font/colour/etc.
@Stoney: that could indeed be the problem. Will run some tests.
Sweet!
Wow! I didn’t know that there is already a script like this and I am glad that this is offered for free. I have some PSD files with a bunch of text on it. I hope I can extract those texts through this script and if it can, I think it is a OCR better alternative.
Doesn’t look like Photoshop 7 can use it. Can’t find a scripts folder, or that file format. Too bad, I have several text layers.
This script would be extremely handy for extracting text when translating PSDs. However, I am looking for a scriptable version, i.e. something I can run from the command line. Any ideas? Even better, the script should drop in some ID for each string extracted, and then also be able to do a search and replace for the ID, to slot in the translated text automatically.
@Garret: Scripts are supported starting from Photoshop CS or higher.
@Martin: Scriptable from command line is not possible (unless you’re running windows (@see) … but then the script will open Photoshop nonetheless). And search and replace would be something you’d do in a text editor
Very useful scipt. Thank you very much!
I look forward for the feature that will import unicode text (for example Russian text). Now I can only see question marks after import.
Just wanted to say thanks for great plugin! Thanks!
v1.3 Excellent Smithers, Excellent