Text Script

J
Posted By
JP
Oct 3, 2005
Views
301
Replies
6
Status
Closed
I need a simple script to add text layer(s). Can anyone point me to one?

TIA.

JP.

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

GD
George Dingwall
Oct 3, 2005
Hi JP,

There is a script that comes with PS CS and PS CS2 which adds a text layer to a document.

If you installed to the default location it should be in this location a windows machine;

C:\Program Files\Adobe\Adobe Photoshop CS2\Scripting Guide\Sample Scripts\JavaScript.

Its name is " WorkingWithText.jsx"

Hope this helps.

On Mon, 3 Oct 2005 10:41:23 +0100, "JP" wrote:

I need a simple script to add text layer(s). Can anyone point me to one?
TIA.

JP.

Bye for now,

George Dingwall

Invergordon, Scotland

http://freespace.virgin.net/george.gdingwall/index.html
J
JP
Oct 3, 2005
There is a script that comes with PS CS and PS CS2 which adds a text layer to a document.

If you installed to the default location it should be in this location a windows machine;

C:\Program Files\Adobe\Adobe Photoshop CS2\Scripting Guide\Sample Scripts\JavaScript.

Its name is " WorkingWithText.jsx"

Hope this helps.

Thanks for that, this script creates a new file – I was hoping for one that adds a layer of text to an existing file.

JP
E
edjh
Oct 3, 2005
JP wrote:
I need a simple script to add text layer(s). Can anyone point me to one?
TIA.

JP.
Why not do it with an action?


Comic book sketches and artwork:
http://www.sover.net/~hannigan/edjh.html
Comics art for sale:
http://www.sover.net/~hannigan/batsale.html
J
JP
Oct 3, 2005
"edjh" wrote in message
JP wrote:
I need a simple script to add text layer(s). Can anyone point me to one?
TIA.

JP.
Why not do it with an action?


Comic book sketches and artwork:
http://www.sover.net/~hannigan/edjh.html
Comics art for sale:
http://www.sover.net/~hannigan/batsale.html

Yeah I might get away with an action. I’ve had trouble in the past positioning the text using actions. Will give it a try though. Thanks.
GD
George Dingwall
Oct 3, 2005
Hi JP,

All you need to do is edit the script to change the line that adds a new document to one that specifies that the active document is used.

You need to change the contents of line 20 from this;

var docRef = app.documents.add(7, 5, 72);

To this;

var docRef= app.activeDocument;

Hope this helps.

On Mon, 3 Oct 2005 13:47:11 +0100, "JP" wrote:

There is a script that comes with PS CS and PS CS2 which adds a text layer to a document.

If you installed to the default location it should be in this location a windows machine;

C:\Program Files\Adobe\Adobe Photoshop CS2\Scripting Guide\Sample Scripts\JavaScript.

Its name is " WorkingWithText.jsx"

Hope this helps.

Thanks for that, this script creates a new file – I was hoping for one that adds a layer of text to an existing file.

JP

Bye for now,

George Dingwall

Invergordon, Scotland

http://freespace.virgin.net/george.gdingwall/index.html
J
JP
Oct 3, 2005
All you need to do is edit the script to change the line that adds a
new document to one that specifies that the active document is used.
You need to change the contents of line 20 from this;

var docRef = app.documents.add(7, 5, 72);

To this;

var docRef= app.activeDocument;

Hope this helps.

Brilliant, I’ll give that a try. Thanks.

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections