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;

Similar Messages

  • 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 keywords from one image to many in Bridge CS6 (workaround)

    I see a few questions about how to do this, but I didn't see this workaround (maybe it's even the workflow Adobe had in mind). Hope it helps others searching for this.
    To copy keywords from one photo, and then apply the same keywords to many, in Bridge CS6:
    Select one image that has the keywords you want to copy.
    Right-click and choose File Info...
    On the IPTC tab, scroll down to find the Keywords field. Select and copy the keywords you want (probably all).
    Click Cancel to exit without making accidental changes.
    Select the files you want to add the keywords to.
    Right-click and choose File Info...
    On the IPTC tab, scroll down to find the Keywords field.
    Click in it and paste your copied keywords.
    Click OK. Keywords are applied to all files. (NOTE: I think this replaces keywords, rather than adding to them).
    I'm using CS6 on OS X 10.6.8.

    Sara,
    Why wouldn't you just use a Windows .bat file with xcopy statements?  You could even schedule it to run with the Windows task scheduler.
    Regards,
    Jeremy Good

  • 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.

  • How best to copy keywords from one image to another?

    Hey everyone,
    I can't seem to find a good, obvious way in Bridge CS3 2.1 to copy just the keyword tags from one image to another.
    I realize that one possibility is to create a metadata template for the source image and apply that template to the destination image, but this would be a cumbersome & lame workflow IMHO.
    I also realize that Bridge allows loading and viewing many images simultaneously, and that the same set of keywords can then be applied en masse. I'm sure many users like this workflow, but I'm not one of them. For one thing, this approach is seriously not future-proof. What if the user goes out and takes more photos that fit into those same keyword-categories that were applied to the image group?
    It seems to me that Bridge should allow the user to right-click on the list of applied keywords (at the top of the keywords pane) and see a "copy keywords" command. And then the user should also be able to right-click on an image and see a "paste keywords" command.
    Comments appreciated,
    Thanks,
    Brad

    There are many arrows in the shape tool, or you can set the line tool to have an arrowhead in the tool options. You can copy/paste layers from one image to another, or drag a layer from the layers panel into the main image window of another image and then use the move tool to position it. You can also drag into the thumbnail in the photo bin, but you'll still need to bring the image up to adjust the positioning.

  • 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

  • "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

  • Copying data into Password Keeper

    Is there any way to copy data from a Word (or Excel) document into Password Keeper?  Could you email the Word or Excel document to yourself, open up the doc on your BB, and then copy and paste into P'word Keeper?  I'd appreciate any suggestions/thoughts for how to do this.  I have a massive number of passwords and it would be easier to type them into Word or Excel and then copy and paste them into Passwork Keeper. (I recognize that for security purposes, I'd want to delete the document, etc.).  Thank you.
    Solved!
    Go to Solution.

    Yes, emailing yourself the document and simply copy/pasting from the Word/Excel document to the PK application would work.
    There is not a simpler import function into Password Keeper.
    If you want a more full-featured password keeper application, check out DataVault or KeePass.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Retrieve Title field values from multiple lists and add into another list

    Hi , Iam trying to retrieve Title field value from multiple lists. and add them into another list. using Javascript. Can any one help me in doing this. Below is the code.. function save() { clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = clientContext.get_web().get_lists().getByTitle('MainList'); clientContext.load(oList); clientContext.executeQueryAsync(OnSucceeded, onQueryFailed); } function GetListItemValue(listName, fieldName) { var list = oWebsite.get_lists().getByTitle(listName); var eventValue = document.getElementById(fieldName).value; eventValue = eventValue.replace(",", ""); var camlQuery = new SP.CamlQuery(); var filterdata = '<view><query><where><eq><fieldref name="Title/"><value type="Text">' + myreqValue.trim() + '</value></fieldref></eq></where></query></view>'; camlQuery.set_viewXml(filterdata); listItems = list.getItems(camlQuery); clientContext.load(list); clientContext.load(listItems, 'Include(Id)'); clientContext.executeQueryAsync(Succeeded,Failed); } function OnSucceeded() { itemCreateInfo = new SP.ListItemCreationInformation(); oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Title', 'My New Title'); var deptItemLookupField = new SP.FieldLookupValue(); //Problem in below line...I was unable to get ID var getId = GetListItemValue("Listname1", "txtboxname1"); alert("ID" + getId); if (getId != undefined) { deptItemLookupField.set_lookupId(getId); } var getId12 = GetListItemValue("Listname12", "txtboxname12"); alert("ID" + getId12); if (getId12 != undefined) { deptItemLookupField.set_lookupId(getId12); } oListItem.update(); clientContext.executeQueryAsync(itemadded, itemFailed); } function itemadded() { alert('Item added successfully'); } function itemFailed(sender, args) { alert('Item added itemFailed' + args.get_message() + '\n' + args.get_stackTrace()); }
    Raj

    Hi,
    For this requirement, you will need to retrieve all the lists objects you want firstly, then execute the requests one by one to get the value of the Title column using CAML or
    LINQ.
    How to: Retrieve Lists Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185009(v=office.14).aspx
    About
    retrieve list items:
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    You can use
    Promise in your script to make your requests sequentially:
    http://www.shillier.com/archive/2013/03/04/using-promises-with-the-javascript-client-object-model-in-sharepoint-2013.aspx
    http://www.learningsharepoint.com/2013/08/13/using-deferred-and-promise-to-handle-async-calls-in-sharepoint-client-object-model/
    Best regards
    Patrick Liang
    TechNet Community Support

  • 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.

  • Copying keyworded PSDs across drives, will all the metadata be transferred?

    Hi there
    I'm copying keyworded PSD files off an external firewire drive onto a desktop hard drive.
    Since I spent a long time keywording and getting the copyright data sorted on them, will this be transferred over as well, or would I have to do it again?
    Many thanks!

    ok turns out it did, i had to re open bridge
    Keywords and metadata are saved in the file itself and when once saved to
    that file they should stay present no matter how you copy your files.
    Bridge needs to cache files first before showing all the info and previews.
    However this should be started automatically after adding files to a folder
    you have Bridge pointed to. If not use the purge cache for folder option
    (Menu tools/cache/purge cache for folder option). Also the shortcut F5 (menu
    View/refresh) might do the trick sometimes when bridge refuses to cache new
    files.
    If this problem persists you might consider to refresh the preferences for
    Bridge (hold down option key while restarting Bridge).

  • Preferance pane window keeps popping open when entering search or data into any fields. I'm also using 1Password and it happens when trying to enter a password

    I'm running on Mac OS X 10.7.4, Firefox 14.0.1. This issue didn't exist until this most recent Firefox update. Basically, a preference pane opens every time data is being entered into a field. It doesn't seem to be the same preference pane that you see when you open the preferences through the normal Firefox access ie. Firefox > Preferences. All of the choices listed in this particular preference pane are specific to Firefox though. I have a screen capture that I could include if wanted. When using 1Password the pane appears, when entering a search in the search bar near the address bar the pane pops up, when entering data into any field as I am now filling in this detail report the pane also pops up. It's quite annoying. Any advice? I'm going to systematically attempt to quit any add-ons and see if that makes a difference. I ave already tried doing a reinstall to no avail.

    I think a screen shot would be helpful. There is a box below the compose area of a reply to upload files.

  • Acrobat XI Windows 7 - unable to (copy and) paste form fields to a different pdf.

    To maintain a consistent appearance and function in the forms I create for various departments, I copy a few form fields  (text, checkboxes) from an unrelated Acrobat PDF. Then I paste those fields into a different PDF document that I am making fillable.
    I do this because Acrobat does not allow setting a default for certain attributes when creating form fields, i.e. an unchecked scroll option, a default font other than Helvetica (in Acrobat 8, 9, and X). Plus it is time-saving to copy and paste fields that are the same in another PDF, like name, address, phone. etc.
    We just updated to Acrobat XI and Windows 7 and now I cannot paste copied fields onto a different PDF.
    Using "replace pages" is not applicable as I am pasting to an entirely different form and copying form fields with the settings I use. 
    Is this a glitch or is something new that was not in Acrobat 8, 9, and X?
    Also, question regarding this forum entry -  http://forums.adobe.com/message/5638333#5638333 - which is somewhat different from my current question.
    The PDF creator could not paste copied fields on other pages of the same PDF. Was this ever resolved so that copy and paste worked as it has for the last 3 versions of Acrobat?
    Thanks!
    Joanie

    Gilad:  You're right: when the fields are different, such as a checkbox and a text field, and you try to title them the same, Acrobat gives you a message. I received no messages, the field names are not the same or I missed one and Acrobat is no longer messaging about it.
    My question is different. Acrobat XI will not let me paste any field copied from a different PDF.  I've been doing that for 5 years in three different versions.  Maybe Acrobat XI has a new process for that, which I could not find in Acrobat help. Maybe it's because all forms now have extended rights automatically in Acrobat XI and there is another method to copy common fields to other PDFs.
    Any thoughts about the new Acrobat XI? It's different in many good ways, but different.
    Thanks for your ideas.

  • Set version name from IPTC Title field?

    I'm no AppleScript genius but I am sure there shouldn't be a whole lot of lines of code needed for me to grab a selection of images and change their version name to whatever the IPTC title field is.
    basically right now the version names are messed up due to tampering but the IPTC metadata is fine, so i want the metadata to prevail over whatever aperture has as name & keywords.
    Anyone got an idea of how to do this simply and quickly? I know I have a batch file renaming utility but I don't think that will help me in this case as aperture doesn't 'care' about file name does it?
    This is on Aperture 3.5 (latest version)

    Lightroom stores metadata in its own database, located:
    [Username]/Pictures/Lightroom/Lightroom Database.lrdb (Mac OS) file.
    [Username]/My Documents/My Pictures/Lightroom/Lightroom Database.lrdb (Windows) file.
    This is different to CS5/Bridge where XMP sidecars contain the metadata for proprietary raw files and in others (DNG, Tiff, jpeg, PSD) it's contained in the XMP headroom within the image file.

Maybe you are looking for

  • RHINTE20 and background processing

    Does anyone know how to set a variant when running RHINTE20? When I run the program it presents a list of objects to be corrected, and I manually select all the subtree with the icon and then run Create Several Objects.  It's these last two steps I'd

  • Colour gets darker when painting on a coloured Art Board Illustrator CS6

    Here's what it looks like http://i45.tinypic.com/whkze0.jpg It's supposed to be a bright orange and but it turns dark when painting. Any ideas?

  • Hyperlinks won't auto format in Chrome or Outlook

    Hi, Wondering if anyone can help me as this is driving me crazy. For some reason when I type a website, email or anything that should be a hyperlink it does not auto format after I hit the space bar.  I have noticed this in Google Chrome and Outlook

  • Component qty.in process order

    Hi, while creating process order, my requirement is that there shouldn't be manual change in its component quantity. System should not allow changes in any of the material quantity while creating a process order of a product. How to do this ? Regards

  • Audigy2NX-- Can a DVD player be attached by usinga dual RCA..

    Audigy2NX-->Can a DVD player be attached by usinga dual RCA splitter to 3.5mm to input on unit to use attached speakers? I want to use my 5. speaker system with my DVD player; is the foresaid configuration feasable?