views:

157

answers:

1

Hi,

I am developing a Photoshop CS4 script and want to set some of the File Info properties on the open document from within the script.

In other words, I want to do the equivalent of choosing File -> File Info and editing some properties, only via the scripting language (Javascript).

Thank you.

+2  A: 

OK, I have found it...

// Set copyright info
app.activeDocument.info.author = "Mr Blobby";
app.activeDocument.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK;
app.activeDocument.info.copyrightNotice = "(c) 2009 Mr Blobby Ltd";
app.activeDocument.info.ownerUrl = "http://www.example.com/";

The docs are here...

http://www.adobe.com/devnet/photoshop/pdfs/photoshop%5Fcs4%5Fjavascript%5Fref.pdf

rikh