I don't currently have time to do a bespoke script for you, you'll need to find or hire someone to write/modify a script. Most of it is there with existing scripts in circulation.
Give this a try. It combines the prompt script above and @Lumigraphics FilenamtoTitle script. Look for "Append Title" in the Tools menu.
Test it on some copy files first!
#target bridge
/*
Terms and Conditions of Use:
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
if( BridgeTalk.appName == "bridge" ) {
menuAppTitle = new MenuElement("command", "Append Title", "at the end of Tools");
}
menuAppTitle.onSelect = appendTitle;
// version 2023-01-05
function appendTitle(){
try{
var thumbs = app.document.selections; //get selected thumbnails
if (!thumbs.length) return; //nothing selected
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
appendText = Window.prompt("Enter text to add to end of the Title","","Append Title"); // prompt for suffix text
if (appendText == null) return; // no text entered, close prompt
for(var a in thumbs){ //loop through thumbs
if(!thumbs[a].container){ //exclude folders
var thumbMeta = thumbs[a].synchronousMetadata; // get metadata
var xmp = new XMPMeta(thumbMeta.serialize()); // serialize metadata
var currentTitle = "";
var count = xmp.countArrayItems(XMPConst.NS_DC, "title"); // check if there is an existing title
if(count > 0){ // if there is an existing title, get the value, otherwise currentTitle will be empty
currentTitle = xmp.getLocalizedText (XMPConst.NS_DC, "title","","x-default");
}
var newTitle = currentTitle+appendText;
xmp.deleteProperty(XMPConst.NS_DC, 'title'); //delete old title
xmp.appendArrayItem(XMPConst.NS_DC, 'title', newTitle, 0, XMPConst.ALIAS_TO_ALT_TEXT); //write new title
xmp.setQualifier(XMPConst.NS_DC, 'title[1]', 'http://www.w3.org/XML/1998/namespace', 'lang', 'x-default');
var ftUpdatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
thumbs[a].metadata = new Metadata(ftUpdatedPacket); //write to file
}
}
}
catch(e){
alert(e + ' ' + e.line);
}
}