Copy keywords into description-field

Hello,
I have to work on many pictures so i don't want to do every step for every picture. I have no experience with scription so i ask you.
I'm searching for a script (or somthing else) that copies the keywords of one file into the description-field of the same file automaticly.
Yours Robin from Germany

I have just done a quick test and this seems to work.<br />Copies the keywords to the description field.<br />Make sure that you do a test first!<br />NB:Folder.userData Adobe/XMP/Metadata Templates, folder must exist.<br />Paul<br /><br />#target bridge<br />var items = app.document.selections; <br />      for (var i = 0; i < items.length; ++i) { <br />         var item = items[i];       <br />var m = item.synchronousMetadata; <br />m.namespace = "http://ns.adobe.com/photoshop/1.0/"; <br />var Des = m.read("http://purl.org/dc/elements/1.1/","dc:description");<br />var Keywords = m.Keywords;<br />if(Des.length >0) {<br />     var Description = Des + ";"+Keywords;<br />     }else{<br />               var Description = Keywords;<br />          }<br />          KeywordsToDesc(m, Description);<br />      }; <br /><br />function KeywordsToDesc(metadata, Description) <br />{ <br />var strTmpl = "TempTmpl"; <br />var strUser = Folder.userData.absoluteURI; <br />var filTmpl = new File(strUser + "/Adobe/XMP/Metadata Templates/" + strTmpl + ".xmp");  <br />var fResult = false; <br />try <br />{ if (filTmpl.exists) <br />filTmpl.remove(); <br />fResult = filTmpl.open("w"); <br />if (fResult) <br />// CS3<br />{ filTmpl.writeln("<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"Adobe XMP Core 4.1-c036 46.276720, Mon Feb 19 2007 22:40:08        \">");<br />//CS2<br />//{ filTmpl.writeln("<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"3.1.2-113\">"); <br />filTmpl.writeln(" <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">"); <br />filTmpl.writeln(" <rdf:Description rdf:about=\"\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">"); <br />filTmpl.writeln("<dc:description>");<br />filTmpl.writeln("<rdf:Alt>");<br />filTmpl.writeln("<rdf:li xml:lang=\"x-default\">"+Description+"</rdf:li>");<br />filTmpl.writeln("</rdf:Alt>");<br />filTmpl.writeln("</dc:description>");<br />filTmpl.writeln(" </rdf:Description>"); <br />filTmpl.writeln(" </rdf:RDF>"); <br />filTmpl.writeln("</x:xmpmeta>"); <br />fResult = filTmpl.close(); <br />metadata.applyMetadataTemplate(strTmpl, "replace"); <br />filTmpl.remove(); <br />} } <br />catch(e) <br />{ fResult = false; } <br />return fResult; <br />};

Similar Messages

  • Copy keywords into title field, keep in keywords field

    I have this script that works in cs5, but it is not working in CS6- I am going to try to modify it to copy the keywords into the title field, but also drop the ";" and replace with a ","
    First, I can't get CS6 to run this code, though. Where is it wrong? Thank you for any suggestions-
    #target bridge  
    if( BridgeTalk.appName == "bridge" ) { 
    keysToDesc = MenuElement.create("command", "Keywords To Description", "at the end of Tools");
    keysToDesc.onSelect = function () {
       keysToDesc();
    function keysToDesc(){
        function getArrayItems(ns, prop){
    var arrItem=[];
    var items = myXmp.countArrayItems(ns, prop);
       for(var i = 1;i <= items;i++){
         arrItem.push(myXmp.getArrayItem(ns, prop, i));
    return arrItem.toString();
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var thumb = app.document.selections;
        for(var s in thumb){
    if(thumb[s].hasMetadata){
            var selectedFile = thumb[s].spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();
            var Keywords = getArrayItems(XMPConst.NS_DC,'subject').replace(/,/g,';')
             myXmp.deleteProperty(XMPConst.NS_DC, "description");
            myXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Keywords );
            if (myXmpFile.canPutXMP(myXmp)) {
            myXmpFile.putXMP(myXmp);
            myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
             } else {
      xmpFile.closeFile();

    There was no need to make a change as it extracts an array and this is converted to a string so that puts the commas inbetween.
    A simple replace can add a space ....
    #target bridge  
    if( BridgeTalk.appName == "bridge" ) { 
    keysToTitle = MenuElement.create("command", "Keywords To Title", "at the end of Tools");
    keysToTitle.onSelect = function () {
    var sels = app.document.selections;
    for(var a in sels){
    md =sels[a].synchronousMetadata;
    md.namespace = "http://ns.adobe.com/photoshop/1.0/";
    var Keys =  md.Keywords.toString().replace(/,/g,', ');// Replace a comma with comma space
    md.namespace = "http://purl.org/dc/elements/1.1/";
    md.title ='';
    md.title = Keys;

  • Script for copying keywords to description field

    Does anyone have a script that can be used in cs5 to copy the keywords to the description field?
    Thanks
    Mark

    This should do it...
    #target bridge  
    if( BridgeTalk.appName == "bridge" ) { 
    keysToDesc = MenuElement.create("command", "Keywords To Description", "at the end of Tools");
    keysToDesc.onSelect = function () {
       keysToDesc();
    function keysToDesc(){
        function getArrayItems(ns, prop){
    var arrItem=[];
    var items = myXmp.countArrayItems(ns, prop);
       for(var i = 1;i <= items;i++){
         arrItem.push(myXmp.getArrayItem(ns, prop, i));
    return arrItem.toString();
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var thumb = app.document.selections;
        for(var s in thumb){
    if(thumb[s].hasMetadata){
            var selectedFile = thumb[s].spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();
            var Keywords = getArrayItems(XMPConst.NS_DC,'subject').replace(/,/g,';')
             myXmp.deleteProperty(XMPConst.NS_DC, "description");
            myXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Keywords );
            if (myXmpFile.canPutXMP(myXmp)) {
            myXmpFile.putXMP(myXmp);
            myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
             } else {
      xmpFile.closeFile();

  • Keyword and description fields missing when add bookmark

    vers 37.0.1
    In a recent upgrade I notice the keyword and description fields are missing when "bookmark this page".
    When view bookmark properties in bookmarks sidebar these fields appear

    You can make the fields visible with code in userChrome.css ()they have visibility:collapse).
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #editBMPanel_keywordRow,
    #editBMPanel_descriptionRow,
    #editBMPanel_loadInSidebarCheckbox {
    visibility:visible !important;
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    *Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
    *Paste the code in the userChrome.css file in the editor window
    *Make sure that the userChrome.css file starts with the default @namespace line
    *Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.<br>Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

  • Adding EXTRA metadata into description field Pshop Bridge

    Hi
    I have got lots of pictures in photoshop which are all captioned neatly.
    However one of the agencies I supply to, requires me to add my credit details into the description field after the description.
    Is there anyway I can do this as a batch.
    Many thanks
    C

    Not as far as I know, you can only select the files with the same description, then point the mouse at the place in the description field to add the details (which off course you can copy paste) but when there are different descriptions choosing the description fields and add the copyright details this will replace the existing info.
    You could try the scripting forum for this:
    http://www.adobeforums.com/cgi-bin/webx?14@@.3bba983b
    and for the future: create a template with al the details (including the copyright info in description field) and use this while importing the files using photodownloader.

  • Problem with copy/paste into WYSIWYG field?

    In using Robo HTML X5 my helpfile design is a simple one, but
    one issue is stumping me.
    -From the TOC tab I will create a new topic, and then edit
    the WYSIWYG field on the right, insert graphics, etc. But if I cut
    and paste from Word 2003 into the WYSIWYG topic field, all
    formatting like bold letting is stripped out, along with graphics.
    The graphics have to be cut and pasted individually and I manually
    have to reformat the text.
    Does anyone know why a copy/paste into the WYSIWYG field is
    being stripped of formatting somehow? Is there simple project
    setting somewhere?

    Hi reiver12367 and welcome to our community
    Trust me on this. Mixing Word and RoboHelp HTML are like
    mixing oil and water. You really don't want to go down any road
    where formatting is maintained during a copy/paste operation.
    You might see better results by right clicking the folder
    (inside RoboHelp HTML) where you want the topic to be, then
    selecting Import. From there, choose the Word document file type
    from the drop-down on the bottom of the dialog, navigate to and
    choose your Word document. You will have a couple of dialogs to
    deal with and the stuff should import in.
    Personally, I even avoid going that route if I can. I instead
    opt for saving the Word document as pure ASCII text. Then creating
    a new topic and copy/pasting the text into the topic. From there I
    format as needed.
    Hopefully this helps... Rick

  • ICal bug: cannot copy/paste into location field of exchange 2007 calendar

    when you copy text from any application (cmd C) and then try to paste it into de location field of a new or existing appointment of a calendar synchronizing with an exchange 2007 account in iCal 4.0, then .... well nothing happens. You can paste it in a subject or a notes field but not in de location field.

    My experience as well (hooked into google calendar), and a frustrating one. I assume this is related in some way to the "yellow exclamation point in edit mode - can only select entire block"? I see that normal "on my mac" calendar locations don't have the yellow exclamation point, and I can select any portion of the text. What's up with this? Is iCal suggesting that google's "Where" field is incompatible somehow? Yet there seems to be no trouble exchanging data between the two...
    Message was edited by: johnshifflett

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Can I copy and paste a drop down list into another field?

    Can I copy and paste a drop down list into another field?

    You don't have to create a PDF, but it would be helpful to know what, exactly, you want to do with the ppt.
    You can export as a PDF which will keep vectors and text as PostScript (crisp) elements.
    You can also Save As from ppt in a variety of formats such as PNG or TIFF.
    These rasterize all the vectors and text, but are very useful if you're laying out a miniature gallery of the powerpoint presentation.
    However, if you want to make the InDesign file a replica of the ppt slides for print, PDF is probably the best way to go.

  • "order aknowledgement" field copied into "reference" field

    hi experts!
    i am trying to find a solution for automatical copy of the information from the "order acknowledge,emt" fiels from the tab confirmations from transaction ME22N into "reference" field in the same tab. does anybody have any idea how can I accomplish that???
    regards,
    ileana

    You will have to check the copy control settings:
    <b>Menupath</b>: SPRO --> Sales & Distribution --> Sales --> Maintain Copy Control for Sales Documents --> Copying Control: Billing Document to Sales Document
    <b>T.Code</b>: VTAF
    Ensure that settings are similar to settings for Billing Doc (F2) & sales Document (CR)
    Regards,
    Rajesh Banka
    reward points if helpful

  • RECIPIENT DESCRIPTION IN BDF and SEND COPY TO ATTRIBUTE ON FIELD

    I have a field that is 20 bytes long has the "send copy to " attribute selected.
    My BDF has a recipient INS and the description is "INSURED COPY"  Data prints in field as "INSURED.COPY........" (where periods are spaces)  I actually want the information to print as "....INSURED.COPY...." so that it displays centered in the field.  I used to be able to put spaces before the recipient's description in 11.3 by using the <RECIP_NAMES> and added the required spaces before the actual description. Doing this I could force the information to be centered for each recipient, even though one recipient might be "AGENT COPY" and another might be "HOMEOFFICE COPY", I could force the information to be centered by adding extra spaces in the description.
    Now, in release 12.2, I can not add spaces before the recipient description in the BDF.  Every time I add spaces prior to the description Documaker strips them out. Is there some other way to center the recipient description in the field? Can I add the JUSTFLD rule to a field that has "send copy to" attribute selected?
    I was able to do the alt+0160 to force a description field to be spaces but I don't think I can add more than one alt+0160 to the description.
    Thanks in advance for any help with this!

    Just to confirm have gone through here Menu > Messaging > "gmail or yahoo wwhatever it is" > options > E-mail settings > User settings > Send copy to self
    If a reply has solved your problem click Accept as solution button, doing it will help others know the solution. Thanks.

  • Unable to copy-paste into a few fields in Safari

    Hello, can anybody tell me why you cannot paste text copied from programs, such as Excel into some of the fields in Safari? Take this website as an example: http://www.banamex.com/estudiosfinanzas/finanzas/divisasmetales.htm
    it is a currency converter. at the bottom right there is a field "Cantidad". You cannot paste anything in there, you have to type. If you open that same link in another browser, you will be able to paste into that field. Can anybody help? Thanks very much!

    Hi Jorge
    your example is the same for me in Safari & Firefox, neither allow pasting, but Camino does.
    It's due to a javascript function deliberately set on that field to allow (validate) only certain numbers (no letters etc, only 2 decimal places) - disable javascript & it works more normally.
    Presumably, Firefox & Safari present pasted data in a way that triggers the website javascript function to reject it, regardless of the correct content.

  • Copy Service Ticket Description to Interaction Record Description Field

    Hello All,
    I have a requirement to copy the Service Ticket description to the Interaction Record description field on save of the Service Ticket.
    Please let me know how to do this in CRM 2007 New Web UI.
    Thanks & Best Regards,
    Lakshminarayana

    With CRM 7 this problem won t exist anymore...

  • Pasring multiple fields into the Description field with a carriage return between each in Orchestrator

    I have a Service Request that is entered in through the Self Service Portal.  This service request has 4 different prompts in the Request Offering.
    This will actually eventually become a Change Management Request.
    What I would like to do, is grab the 4 User Inputs, and place them in the Description field of the Change Management Request.  I can get them to show up in the Description, however, I would like to be able to add a carriage return between each User
    Input (along with a description of what's being put in).  How can I do that?
    Right now, it looks like this Username: Name Manager: Manager
    Start Date: Start Date Needs Mail?: Y or N
    I want it to look like this:
    Username: Name
    Manager: Manager
    Start Date: Start Date
    Needs Mail?: Y or N

    Thank you.  This is what I was looking for.
    For those figuring out what to do:
    Add the Run .Net Script command to your Runbook.
    Under Details, selec PowerShell for the Type, and in the Script $Desc = "Username:
    Username field from the Published Data" + "`n" + "Manager: Manager field from the Published Data" + "`n" + "Start Date:
    Start Date field from the Published Data" + "`n" + "Needs Mail:
    Needs Mail field from the Published Data"
    ($Desc is just the variable I used, and can be whatever you want)
    Under Published Data, Add the field you want to output and make the Variable name what you used above without the $
    Then do Update Object and Update the Description with the published data from your PowerShell Command.
    I do this, and my data is passed successfully and it shows up in my notifications, however the carriage returns are not there. It looks the same as it did before I added the powershell right before Update Object. 
    ? Anybody else not getting this to work ? 

  • CRM 5.2 WEB UI Technical - Copy Category2 field data to Description field

    Hi All,
    I am working on CRM technical part.
       In the process of creating a sales request/Complaint, the end user input the data in category 1 and category 2 fields. In the same page/screen there is a field called Description. What ever the value user enters in the Category 2 field should appear in Description field before the serveice ticket is saved.
    guys, could you please help me out in achieving this?

    Hi,
    U can assign an event to your Description field. End user will input value in Category2 field and then will click on description field. IAt this moment event will get triggered and in this event U need to write code to fetch value of category2 and then dispay this value through a variable assigned to Description field in .htm page.
    Reward points if it helps.
    Regards,
    Viks

Maybe you are looking for