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