Skip to main content
Participating Frequently
June 14, 2012
Question

ID JS (any version): How to access "Author Title" field value through scripting.

  • June 14, 2012
  • 2 replies
  • 1041 views

Good Morning:

In the file information dialog box, there is a field for "Author Title".
Is it possible to reference this field via scripting?

I've tried many different field name options for it (i.e. "authorTitle", "titleAuthor", etc...), but no luck so far.

Thanks!

Theresa

This topic has been closed for replies.

2 replies

Jongware
Community Expert
Community Expert
June 14, 2012

Using Export XMP .. in Acrobat I found this is a Photoshop property -- at least, it's in the Photoshop namespace.

You can set and retrieve it with this:

alert (app.activeDocument.metadataPreferences.getProperty("http://ns.adobe.com/photoshop/1.0/", 'AuthorsPosition'));

app.activeDocument.metadataPreferences.setProperty("http://ns.adobe.com/photoshop/1.0/", 'AuthorsPosition', 'Master of Puppets');

Message was edited by: [Jongware] Obligatory Edit to get Code highlighting ... Also: hi Harbs!

Harbs.
Legend
June 14, 2012

myDoc.metadataPreferences.author

Participating Frequently
June 14, 2012

Nope. That's for Author. I was talking about the field below that one, "Author Title".

Harbs.
Legend
June 14, 2012

Interesting one.

For some reason it's in the Photoshop namespace:

<rdf:Description rdf:about=""

  xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">

  <photoshop:AuthorsPosition>That's me!</photoshop:AuthorsPosition>

</rdf:Description>

You're going to need getProperty() and setProperty() for that:

doc.metadataPreferences.getProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition");

and

doc.metadataPreferences.setProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition","All About Me!");

Harbs