• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
5

Bridge 2021, change keyword separator to a comma ppleeaaseeee!!

Participant ,
Dec 27, 2020 Dec 27, 2020

Copy link to clipboard

Copied

Hi

Forever ive been hoping the keyword seperator could be changed to a comma instead of a semi colon, 

is this at all possible?

So many time i cut and paste keywords from bridge to 'other locations' and these location only recognise comma seperators. Would just save me another step in the work flow.

TOPICS
Feature request , Keywords , Metadata

Views

533

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

2023. No answer from Adobe. Would this be possible to be implemented. Coma is much more useful to copy paste to other programs. No one and nothing recognizes semicolon, so NOT useful at all how Bridge separates keywords. At least Lightroom separated by commas.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

Hi @simonbrattphotography I completely agree with you, the semicolon is not generally used as a separator. (Personally I favor the tab key as that frees the comma to be used within the text content, but that's another matter.)

 

However, the vast majority of folks who look at these forums are not Adobe employees but rather volunteers (such as myself) who try to answer questions. If you want to reach Adobe, please try https://adobebridge.uservoice.com/. That location is viewed by Adobe employees to see what people are asking for.

 

Good luck!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

After collating code fragments from other contributors on these forums I have hacked together a script for Bridge (Ver 13) that will copy the keywords of the selected asset to the Windows clipboard, delimited by commas, suitable for pasting into websites that require commas.

 

I have tested only on Windows 10, Bridge 13, with JPG and RAF image files.

 

/*
Filename: CopyKeywords.jsx

Script cobbled together by Andy Millard based on code fragments from 
contributors on the Adobe Support Community, including Stephen Marsh

When triggered by a new context menu item, this script accesses the 
metadata of the first selected asset and copies the keywords 
to the system clipboard, delimited by a commas.

Install by copying to the Startup Scripts folder of Bridge

Last modifed 9/28/2023

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#target bridge
if(BridgeTalk.appName == 'bridge')
{
    try{
		// Load the XMPScript library
		if ( ExternalObject.AdobeXMPScript == undefined ) 
		{
			ExternalObject.AdobeXMPScript = new ExternalObject( "lib:AdobeXMPScript" );		
		}
		// Add new action to the Context menu of selected asset
        var xmpCommand = MenuElement.create('command', 'Copy Keywords to Clipboard', 'after Thumbnail/Open', this.menuID);

		// Set the function to be called for the new action
        xmpCommand.onSelect = function()
		{
			keysToClipboard();
        }

		function keysToClipboard()
		{
			// Tested on Windows with Bridge version 13
			// I suspect it may not work with earlier versions of Bridge
			if(BridgeTalk.appVersion > 12)
			{
				var thumb = app.document.selections[0]; // Get first selected thumbnail
				app.synchronousMode = true; // Ensure recent metadata changes are included
				var xmp = new XMPMeta(thumb.synchronousMetadata.serialize());
				
				// Count number of keywords
				var items = xmp.countArrayItems(XMPConst.NS_DC, 'subject');  
				// Collect the keywords
				var keys = [];
				for(var i = 1;i <= items;i++)
				{
					// To access the keywords from the metadata, use the NS_DC namespace 
					// and "subject".
					keys.push(xmp.getArrayItem(XMPConst.NS_DC, 'subject', i));  
				}  
				// Delimit the keywords with comma	
				keys = (keys.join(', '));
				// Copy the keywords string to the system clipboard
				app.document.copyTextToClipboard(keys.toString());
			}
			else
			{
				alert("Script not tested with this version of Bridge");
			}
        }
    }
	catch(e){
		alert(e + ' ' + e.line);
    }
}

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

LATEST

@DukeNelson 

 

I’ll test your code and thanks for your effort in continuing this from the original Photoshop script.

 

EDIT:

 

Tested with Bridge 2024 (v14) with TIFF and PSD.

 

If multiple files are selected, the file that is right-clicked will be the one with the keywords/subject metadata copied, which makes sense.

 

The code is using a comma+space separator:

 

keys = (keys.join(', '));

 

If the end user doesn't require spaces change it to:

 

keys = (keys.join(','));

 

Good work!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines