Photoshop Text Export/Import Scripts

Apr 25, 04:33 PM

About a month ago I wrote some more scripts for Photoshop, which the people I work with seemed to enjoy. These scripts export all the text in a PSD to a text file, or import each line in a text file into a text layer (duplicated from the psd or new). I made use of a few algorithms at ps-scripts.com a great resource if you are writing scripts or looking for them.

To use these scripts:

Copy them to your system and choose “File > Scripts > Browse…” and select the script you want to run

- OR –

1. Place script in ‘/Applications/Adobe\ Photoshop\ CS#/Presets/Scripts/’ for mac or ‘C:\Program Files\Adobe\Adobe Photoshop CS#\Presets\Scripts\’ for win

2. Restart Photoshop

3. Choose File > Scripts > psdImportText or psdExportText

Normal safety warning here: PLEASE SAVE YOUR FILES BEFORE YOU RUN SCRIPTS. I did suspend/save history state for the script, but things can still go bad and often do.

Scripts are only written with CS3 and above in mind, but I only verified them in CS3 on osx and xp.

You can download the export script here and the import script here (right click and choose “Save As” to download).

I’m thinking about streamlining a version of the export which only exports the current layer (if text), since in my own use this seems to be more useful and easier to shortcut. Although for some reason my photoshop executes scripts differently when they are “shortcutted” and they often fail. I’ll have to look into this. Anyway, hope you like em’.

Matt Irwin

,

---
---