This example is for Photoshop CS3 or better!
Copy and paste the code into ExtendScript Toolkit
This utility can be found in the relevant folder:-
PC: C:\Program Files\Adobe\Adobe Utilities
MAC: <hard drive>/Applications/Utilities/Adobe Utilities
Or you can use a text editor and save with an extension of .jsx
Start Bridge
Edit - Preferences - Startup Scripts
At the bottom click the "Reveal Button" this will open the folder where the script should be placed.
Place the file into this folder.
Close and restart Bridge.
Accept the new script.
To use:-
Navigate to the required folder
Select the documents to be processed
Mouse right click menu ( Control-click on a Mac) and select "Copy Headline to Caption"
That's all there is to it
#target bridge
if( BridgeTalk.appName == "bridge" ) {
headToCap = MenuElement.create("command", "Copy Headline to Caption", "at the end of Thumbnail");
}
headToCap.onSelect = function () {
headLineToCaption();
}
function headLineToCaption(){
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var thumb = app.document.selections;
for(var s in thumb){
if(!thumb.hasMetadata) continue;
var selectedFile = thumb.spec;
var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
var myXmp = myXmpFile.getXMP();
var Head = myXmp.getProperty(XMPConst.NS_PHOTOSHOP, "Headline");
//REMOVE THE LINE BELOW IF YOU WANT TO KEEP THE SAME DETAILS IN THE Headline !!!!!!!!
myXmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "Headline");
myXmp.deleteProperty(XMPConst.NS_DC, "description");
myXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Head );
if (myXmpFile.canPutXMP(myXmp)) {
myXmpFile.putXMP(myXmp);
myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
} else {
xmpFile.closeFile();
}
}
}