Script: Adjust tracking (character spacing) of text
PSE doesn't show the user all the text formatting capabilities available in PhotoShop, but this script can alter the tracking (character spacing) of the text on a layer.
Here are the steps to use the script:
- Open Notepad.
- Copy this text and paste it into Notepad:
/*
<javascriptresource>
<name>Character Tracking</name>
<enableinfo>true</enableinfo>
<menu>automate</menu>
<about>Adjust the kerning.</about>
<category>Typography</category>
</javascriptresource>
*/
var targettext = app.activeDocument.activeLayer.textItem
targettext.tracking = 30
- Use "Save As" with the File Type of "All Files" to save it as
Character tracking.jsx
in the
C:\Program Files (x86)\Adobe\Photoshop Elements 10\Presets\Scripts
directory. - Keep the .JSX file open in Notepad.
- Start PSE. You'll have a new menu item: File...Automation Tools...Character Tracking.
- Create a document in PSE with some text on a text layer.
- With a text layer selected, run the Character Tracking script.
- To adjust the tracking, simply switch to Notepad and change the numeric value after the equals sign, save the file and re-run it in PSE. (No need to close and re-open PSE.)
You can use negative values, too -- any number between -1000 and 10000 is OK.
For example, here's the original:
![]()
Here the tracking was set to -50:![]()
And here the value was 300:![]()
It works on paragraph text as well.
Enjoy!
Ken
