Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
myDoc.metadataPreferences.author
Copy link to clipboard
Copied
Nope. That's for Author. I was talking about the field below that one, "Author Title".
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more