Script to move the description metadata information in the title field

I tried for 2 days (market) to try to get Bridge CS6 to copy the information in the Description field for the field title in the metadata. I can get it in the menu, but nothing happens when I change other scripts. Any suggestions would be greatly appreciated.

If you want a good laugh, I can post my previous attempts.

It is a way to copy the information...

#target bridge
 if( BridgeTalk.appName == "bridge" ) {
descToTitle = MenuElement.create("command", "Description to Title", "at the end of Tools");
}
descToTitle.onSelect = function () {
 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 Description =  getArrayItems(XMPConst.NS_DC, "description");
        myXmp.deleteProperty(XMPConst.NS_DC, "title");
        myXmp.appendArrayItem(XMPConst.NS_DC, "title", Description, 0, XMPConst.ALIAS_TO_ALT_TEXT);
        myXmp.setQualifier(XMPConst.NS_DC, "title[1]", "http://www.w3.org/XML/1998/namespace", "lang", "x-default");
    }
function getArrayItems(ns, prop){
var arrItem=[];
try{
var items = myXmp.countArrayItems(ns, prop);
 for(var i = 1;i <= items;i++){
 arrItem.push(myXmp.getArrayItem(ns, prop, i));
     }
return arrItem;
}catch(e){alert(e +" Line: "+ e.line);}
}
        if (myXmpFile.canPutXMP(myXmp)) {
        myXmpFile.putXMP(myXmp);
        myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
         } else {
  xmpFile.closeFile();
        }
    }
}

Tags: Bridge

Similar Questions

  • Script to move the playhead randomly to executives?

    Is it possible to have a script that sends the playhead to specific images at random, wait about 8 seconds then go?

    For example, frames 1-20 will have an image on each image. I want the playhead to land on these images in a different order and keep a loop.

    Thank you

    I did not code it if you return to section 1, code it so that when you return to frame 1, you launch a setInterval another... you want only a job.  If you place the following code in frame 1 it will take care of it, leaving a setInterval be activated...

    Stop();

    var intervalID; intervalID is undefined here because there is nothing assigned

    if(!intervalID) {/ / will only when intervalID is undefined}
    intervalID = setInterval (moveToFrame, 3000); defines intervalID
    }

    function moveToFrame() {}
    gotoAndStop (Math.floor (Math.random () * 4) + 1);
    }

  • Need a script to display the hidden field if number = 568845

    Hi all

    Using Acrobat Pro 9.1 on iMac with OS 10.6.8

    I am working on a form to fill out and need a script to display a hidden field when a button is clicked.

    I've set up a numeric field to type a number, and the hidden field is "text1".

    Now, I need a script to the button open only the hidden field, if the field number = 568845

    In this way the customer can fill in the code and then show and type in the field.

    Any help would be appreciated.

    Ron

    Given that you use it by a button, you can't use event.value because a button has no value, and in any case, you want to check the value of another field. So this place like your button MouseUp event (of course, you have to adapt the name of the text field...):

    If (this.getField("Text1").value == "568845") {this.getField ("Hidden_Field") .display = display.visible} else {this.getField('Hidden_Field').

    display = display.hidden}

  • Get the value of the title field

    My question is simple. Here's my scenario.

    I have a check for profile, with an editable title field and a list of options. The user selects a value in the option list and entered a title. When he submits the form, the title of the content check-in must be derived from the value of the option list + the value of the field title. The derivative title must be the concatenation of the value of the option list, and the value of the field title.

    My question is how to get the value of the field title using the script of the OIDC? I have a rule with the field of dDocTitle and its derivative field, I have an idoc script that displays the value of the option list in the spin-off title field. I only need to concatenate the value of the editable field title entered by the user.

    Thank you. I use UCM 10 g.

    This can be done with rules and profiles of the school boards and derived values.

    If the user enters a title in the field of dDocTitle (this is mandatory) and if you have another field of metadata with a menu drop-down (as conceptual dDocType) you can use the Configuration Manager (rules and profiles) take the value of dDocTitle and dDocType and when checked (it not shown to the user after logging) she'll concatenate.

    in the custom box (you may need to do this because of the wrong inserts quotes with our variables) make sure that it looks like this
    <$dprDerivedValue=dDocTitle &="" ddoctype$="">

    Notes that may be of interest
    How can define you a value derived in a rule using Idoc Script to call a service? (Doc ID 833953.1)
    Who wins: rule or a set of default metadata about a file? (Doc ID 798653.1)

  • Delete the title field

    I don't want the line separating the title from the rest area of the screen.
    I tried to use setTitle ((Field) null) on a screen or used a full screen, but the line seperator is always displayed.

    How can I remove it?

    I don't get the line when I remove the title.  Are you sure that you do not have a SeparatorField somewhere?

  • Script to move the same objects of value of color to a layer

    I have a range of color objects upward into process colors, and I would like to the moved to the individual layers of script.

    so the result would be to move all items from cyan to CYAN layer, move all the magenta elements to the Magenta layer, etc. etc.

    Could someone help please?

    Thank you very much

    something like this will do the trick.

    Don't forget: this can make a mess of your z-order...

    function seperate_items_to_layers_by_colour(){
        var doc = app.activeDocument;
        var item = doc.pageItems;
        var C_lay = make_layer_if_needed("CYAN");
        var M_lay = make_layer_if_needed("MAGENTA");
        var Y_lay = make_layer_if_needed("YELLOW");
        var K_lay = make_layer_if_needed("BLACK");
    
        for(var i=0; i		   
  • action or a script to move the selection to the specified layer?

    Hi all

    I have a work of art on 'Layer 1' I need to shrink and duplicate "layer 2". I do this several times a day, so I was hoping someone could help me with a script? The two layers are always named the same. I work in CS5.


    Thank you very much!

    Here you go

    var scale = 50; // 50 means 50%, change this to your needs
    
    var idoc = app.activeDocument;
    var ilayer = idoc.layers['Layer 2'];
    var sel = idoc.selection;
    var selen = sel.length;
    
    for (i=0; i		   
  • How to use a script to validate the same field with different addresses in different pages?

    I have a script that is applied to a field 'email '.

    The script asks to check the address, if it is not well written.

    But this field is present in many pages for different guests filling in this information.

    How can I adapt this script? (without changing the name of each field of each page and therefore to change the value in the script to a page that ...)

    function confirm_email_OnValidate (element)

    {

    Event.RC = confirm_email_Validate (Element, event.value);

    }

    function confirm_email_Validate (Element, newvalue)

    {

    If (newvalue.length < = 0)

    Returns true;

    Model = newvalue.replace (/ [a-zA-Z0-9] + ((\.| _ | \-) [a-zA-Z0-9] +) * @([a-zA-Z0-9] +(\.| \-))+[a-za-Z]{2,}/, «»);)

    If (Dummy.length! = 0)

    {

    InputError (element, 'Check this address');

    Returns false;

    }

    Returns true;

    }

    function confirm_email_Format (element)

    {

    Returns true;

    }

    You can use the eMailValidate built-in function to simplify this. For example, you can use the custom following validation script:

    if (event.value && !eMailValidate(event.value)) {
        app.alert("Check this address");
        event.rc = false;
    }
    

    It provides a validation better than the regular expression that you have demonstrated.

    Without knowing how you use the parameter of the element and the operation of the function InputError, it is difficult to offer something more.

  • The movie, the titles and themes menu

    I used menus of film before and have always found one that was quite appropriate. However this time, I'm not really find one that fits to my project. Do you have any suggestions? Is it possible to create a new or buy a different theme?

    I can do my own title pages but don't have an idea to make a movie menu with selections of music and scene. Any suggestion would be appreciated. I use 12 first.

    AZ Aurora

    Do it yourself approach to disc menu has three basic routes...

    a. customization of one of Adobe's existing ones at the level of the disk within the open Project menu section

    or

    b. customization of one of Adobe's existing ones at the level of its files .psd hard disk of the computer

    or

    c. create a disc from scratch menu using Photoshop CS or higher (you need a .psd editor who takes in charge layer layer sets/sup sets

    in the Palette layers, menu menu .psd files and the main stage.

    Many details is necessary once you go beyond the 'a '.

    Please check the following...

    http://www.atr935.blogspot.com/2014/09/PE-disc-menu-foldersfiles-locations.html

    First Elements ATR troubleshooting: PE: Disc Menu theme folder/files

    There is the site http://www.muvipix.com which is a site with some free offers a Subscriber. You can

    want to see what is available out there in the way of free disc menus Premiere Elements.

    Please check and review and then we can discuss this further. You can do a lot of customization on existing menus of Adobe to the breast

    section of the disc menu of the open project.

    http://helpx.Adobe.com/premiere-elements/using/creating-disc-menus.html

    RTA

  • Display the title field in the form of a notification of Workflow summary?

    It seems that the current notification workflow does not include clients of title in the tag "summary form"...

    How can I add this to the notification by electronic mail - not all name is easy whether they are male or female! and that means that you currently have to click to access the record of cutomer online to clarify this...

    Hey there,

    Does not include a number of things.

    The name of this kind of betrays it - summary Workflow, it is supposed never to have the basic things like a summary and you go to the admin to manage your CRM etc. The system has a such big CRM system with a lot of features which may not all be put in an e-mail.

    While it would be nice to sort order and web form elements that go through these things, I would have less much of the time to encourage customers to use the admin and adopt more modern production workflows for their business, which in turn, will help the company.

  • Help using Léonie / old Toad move the text of "Key words" in "securities".

    Need help to use leonie / old Toad move the text of "Key words" in "securities".

    I have about 30 000 images with keywords but NO Title.  I want to move / copy the text in the keywords section in the section of the title.

    So, I tried this Script: Add keywords to title - Script of Léonie field

    He did a little work, but not completely.

    When I select an image in Photos, and then "Get Info" I'll see below in the title area, notice that the first two lines are the same.

    IMG_2621.JPG

    IMG_2621.JPG

    March 12, 2014 14:23

    My keywords are: Experimental engine 17 to 600 hours

    AFTER I run the Script, I get the following:

    IMG_2621.jpg - 17-600 hours experimental engine

    IMG_2621.JPG

    March 12, 2014 14:23

    I need is:

    17 to 600 hours experimental engine

    IMG_2621.JPG

    March 12, 2014 14:23

    I do not understand why the Photos shows the name of the file twice.   These fields are not labelled, but I was under the impression that the top line was the Description, the second line is the name of the file, and the third line is the Date.   Because only the first line is displayed under thumbnails, I try to have as much descriptive information appear in this area (as in the past, we could do with iPhoto or Aperture).

    In other words, when I run the script I hold my keywords to replace everything in the top line completely, eliminating the name of the file. Is there something wrong with this approach?  I would still have the name of the file to the second line, right?

    Thank you.

    Remove the file name of the title field, and then run the script. You will have the chance

    -17 to 600 hours experimental engine

    You can manually delete the "-" at the beginning or modify the script.

  • Move the group to another group

    Hi all

    Can help to create a script to move the group named "Shine" in another group named "shine everything."

    Thanks in advance.

    Snapshot show for a better understanding.

    set.jpg

    Does that help?

    // move groups of a certain name into group of a certain name;
    // 2015, use it at your own risk;
    #target "photoshop-70.032"
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var name1 = "Shine";
    var targetName = "Shine All";
    var targetGroup = layersWithName (targetName);
    // if exactly one group qualifies;
    if (targetGroup.length == 1) {
    // collect groups;
    var theGroups = layersWithName(name1);
    // process groups;
    for (var m = theGroups.length - 1; m >= 0; m--) {
      moveTo(theGroups[m][1], targetGroup[0][1]);
      };
    }
    else {alert ("too many or too few groups called »"+targetName+"«")}
    };
    ////////////////////////////////////
    function layersWithName (thisName) {
    // the file;
    var myDocument = app.activeDocument;
    // get number of layers;
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var applicationDesc = executeActionGet(ref);
    var theNumber = applicationDesc.getInteger(stringIDToTypeID("numberOfLayers"));
    // process the layers;
    var theLayers = new Array;
    for (var m = 0; m <= theNumber; m++) {
    try {
    var ref = new ActionReference();
    ref.putIndex( charIDToTypeID( "Lyr " ), m);
    var layerDesc = executeActionGet(ref);
    var layerSet = typeIDToStringID(layerDesc.getEnumerationValue(stringIDToTypeID("layerSection")));
    var isBackground = layerDesc.getBoolean(stringIDToTypeID("background"));
    // if not layer group collect values;
    if (layerSet != "layerSectionEnd" /*&& layerSet != "layerSectionStart"*/ && isBackground != true) {
    var theName = layerDesc.getString(stringIDToTypeID('name'));
    var theID = layerDesc.getInteger(stringIDToTypeID('layerID'));
    if (theName == thisName) {
    theLayers.push([theName, theID)
    }
    };
    }
    catch (e) {};
    };
    return (theLayers)
    };
    ////// move //////
    function moveTo (theLayer, theGroup) {
    // get index;
    var ref = new ActionReference();
    ref.putIdentifier( charIDToTypeID( "Lyr " ), theGroup - 1);
    var layerDesc = executeActionGet(ref);
    var theIndex = layerDesc.getInteger(stringIDToTypeID("itemIndex"));
    // =======================================================
    var idmove = charIDToTypeID( "move" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref4 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            ref4.putIdentifier( idLyr, theLayer );
        desc5.putReference( idnull, ref4 );
        var idT = charIDToTypeID( "T  " );
            var ref5 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            ref5.putIndex( idLyr, theIndex );
        desc5.putReference( idT, ref5 );
        var idAdjs = charIDToTypeID( "Adjs" );
        desc5.putBoolean( idAdjs, false );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc5.putInteger( idVrsn, 5 );
    executeAction( idmove, desc5, DialogModes.NO );
    };
    

    under the direction

  • Error trying to move the file using the file adapter

    Hi, I'm looking for a script to move the file to one remote folder to another by file adapter as described in the topic 4.5.11.1 to http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10231/adptr_file.htm#CHDGFAAB. But I get the below error:

    input > < message > <
    < Invoke1_FileMove_InputVariable > < part name = "Empty" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > < empty xmlns = "http://xmlns.oracle.com/pcbpel/adapter/opaque/" / > < / piece > < / Invoke1_FileMove_InputVariable > < / input > < fault >
    < bpelFault > < faultType > 0 < / faultType > < bindingFault xmlns = "http://schemas.oracle.com/bpel/extension" > < a name = "summary" part > < summary > Exception is is produced when the link has been invoked.
    Exception occurred during invocation of the JCA binding: "* JCA binding run operations reference 'FileMove' have to: Exception occurred when setting has been invoked.*.
    * Exception occurred during invocation of the JCA binding: "* failed to instantiate InteractionSpec oracle.tip.adapter.file.outbound.FileReadInteractionSpec reason: cannot set JCA WSDL perte.*."
    * The WSDL of JCA perte.* definition error *.
    * The setSourcePhysicalDirectory property is not set to oracle.tip.adapter.file.outbound.FileReadInteractionSpec *.
    * Please check the spelling of the perte.* *.
    ".
    The called JCA adapter threw an exception of resource.
    Please review the error message above carefully to determine a resolution.
    ".
    The called JCA adapter threw an exception of resource.
    Please review the error message above carefully to determine a resolution.
    < Summary / > < / part > < part name = "detail" > < details > can not set the WSDL JCA property.
    Error setting property of WSDL JCA.
    SetSourcePhysicalDirectory property is not set to oracle.tip.adapter.file.outbound.FileReadInteractionSpec
    Please check the spelling of the property.
    < / detail > < / part > < part name = "code" > < null code > < / code > < / piece > < / bindingFault > < / bpelFault > < / fault > < faultType >
    < message > 0 < / message > < / faultType > < / messages >

    Please provide any idea if someone tried it.

    Thank you
    RPS

    Hi rps.

    Your interaction-spec className seems to be incorrect (FileReadInteractionSpec).

        
     .....
        
    

    Please try with the specifications of interaction above and let me know the results.

    Kind regards
    Neeraj Sehgal

  • Movement of the titles the missing half in FCP!

    Hi, I'm new motion but who have an urgent job, creating a series of titles for 10 promo videos. I'm having a problem with titles ranging from Motion5 to FCP X. If I open Motion and create a new project from FCP title, everything is fine. But if I access via Final Cut Motion (click a title existing and 'open in movement'), once I changed and publish changes, they appear in the wrong position, sometimes a mirror image or cropped screen! I need to change a particular effect, and I can't see appear in the same position in the PCF. If I "transform" and move the title to the screen Center a part of the text is cropped. Here are 2 pictures to show what I live. Any ideas? I tried the FCP forum, but it was suggested I try here. Thanks in advance.

    As it appears on the move

    https://www.dropbox.com/s/1wlouzkpnhetj4j/motion5.jpg?DL=0

    As it appears in FCP

    https://www.dropbox.com/s/p55l3pvpf90p09a/FCPX.jpg?DL=0

    elongation do not match, moving, the project is about 2:1, 16:9 of the project your FCPX

    the title are resized to FCPX, or re-do in motion with the correct settings.

  • Script Automator for the DATE and TIME stamped record

    Hi all

    I'm not a scripter, but are in need of a DATE and time-STAMPED folder (or file) I would like to put on my desktop and have updated automatically so that I can use this tool to quickly see if a backup external (or internal) is current. probably I could also use it to quickly find out how /old/ a backup is.

    for now, I do this manually if I want to quickly verify that a backup works by creating a "date named folder" on the desktop - such as '-2016 03 26 "."» so I can quickly see if a backup I just ran ran.

    I have a lot of backups (internal, external, off site, etc.) and it would be super useful for me to have.

    I consider the name of the folder to be customizable (potentially) in case I need to change it, but a good default would be "-YEAR MONTH DAY" so that I could see easily when this backup has been but also I name my files in this way so they can appear in chronological order "."

    is anyone able to help me with something like that or suggest another forum for cross-post this?

    Thank you

    Jon

    Hello

    Create the the ""new folder " action, like this:"

    ---------------

    Drag and drop the 'Shell Script' variable in the "name:" field.

    --------------

    Double click on the variable in the "name:" field:

    Copy and paste this text in the field 'Script ':

    date "+%Y %m %d"
    

Maybe you are looking for

  • Duplicate iCal (but not iCloud) calendars

    iCal in my Mac's display of duplicate calendars. I have all my devices synced to iCloud and my Mac is the only one who experience this issue. I am up to date on all software (date of today ' hui) and cannot make this cooperation of the machine. I hav

  • How to disassemble the Qosmio F50?

    Hello! Sorry for my English. Say for me, please, how to disassemble this book? Very hot, but cleaning service center costs $ 30 and I want to do it yourself.:)

  • Cannot open docx files

    I am running windows XP. I downloaded the file MS File Format Converter and Office Compatibility Pack Service Pack 2 (SP2) and I still cannot open the docx files. I can open .xlsx files. I am running Outlook 2007 and Word 2003. I have 2 other compute

  • Muse is generating the error 400: font not available

    Recently, I received an error when I publish Muse. The error that says: 400: font is not available.I have linked several tips on this forum, but cannot make it work!Any suggestions?

  • Book formatting: last line of text will move to the next page

    Hi, I hope someone can help me with this. I put in the form of a book in InDesign. I lined up my text to a grid, and that works very well. What does not work, it is the last line on the pages of random left moves to the top of the next page, leaving