Hi, all.聽 Boy, am I stumped.
I have 900 PSD files each containing two layers.聽 One layer is a background consisting of an illustration (each file has the same illustration), and the other layer is text (each file has unique text but the same font).
What I鈥檓 trying to do is create an action which simply changes the font, so that I can perform a batch automation, thus changing the font in each of the 900 files automatically, rather than having to open, edit, and close each file manually.
I鈥檒l record the action -- highlighting the text, setting it to the desired font, saving and closing the file, etc. -- but when I play the action via batch automation I simply end up with 900 files which, while containing the desired font, also each contain exactly the same text (namely, the text contained in the file I used to record the action).
Am I making any sense?聽 Basically, I鈥檓 looking for a way to change the font across 900 files without altering the text.聽 Surely there鈥檚 a way to do this?
Thanks so much for any time, help, or consideration you can afford!
I'm stumped! Action, font, automation,...If the Action also records the content a Script might be the solution.
If it鈥檚 definitely the top-layer, one could forego all the usual checks and something like this might suffice:
#target photoshop
var myDoc = app.activeDocument;
var theText = myDoc.layers[0].textItem;
theText.font = ''Helvetica'';// enter the correct font-name here
(Paste the text into a new file in ExtendScript Toolkit (part of Photoshop鈥檚 installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS4) and save it as a jsx-file into Photoshop鈥檚 Presets/Scripts-folder.
After restarting Photoshop the Script should be available under File %26gt; Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action or (in CS4) be used in a Configurator-Panel.)
But You will need the correct name for the font!
No comments:
Post a Comment