Edit the description metadata field.

Is it possible to edit the 'description' field through a script.  I've been trying off and on all day and coming up dry. here is what i have now thanks to some script i've found from John Beardsworth (thanks, btw!!) that i managed to narrow to my needs...
#target bridge
if ( app.name == "bridge"  && app.version[0] == '3' )
// Create main menu item
    var menu = new MenuElement( "menu", "Filename to Metadata cart", "at the end of Tools", "g2mMenu");
    var g2tCommand =  new MenuElement("command", "click here", "at the end of g2mMenu");
//Submenu for filename to iptc title
    g2tCommand.onSelect = function(m)
        var getFolderChildren = true ;
        var filesOnly = true ;
        var thumbs = app.document.selections;
        for ( var i = 0; i < thumbs.length; i++ )
        { var thumb = thumbs[i];
           var md = thumb.synchronousMetadata;
           md.namespace ="http://purl.org/dc/elements/1.1//";
           md.Description= "hello World";
           Window.alert ("Done " + i + " records");
//closing brace
I simply cannot get it to change the info in the description field.  It even willl give me the alert saying it did  it and nothing will be there.  this works fine for Title and Headline, but not description... any ideas?
obivously this is a simpler version of what i actually want to write into the description field, otherwise i wouldn't need a script.  But if i can get this to work, i can get my real needs to work as well.
thansk.

I think your main problem is that you are using the wrong property name. Try "description" and not "Description." XMP property names are case sensative.
The following script works for me:
#target bridge
// Where is this script?
var curFolder = new File( $.fileName ).parent;
// Make a simple JPEG file here for the test
var somePixels = new BitmapData( 300, 200);
var jpgFile = new File( curFolder.fsName + "/test.jpg");
somePixels.exportTo( jpgFile, 100, true );
// Make a thumbnail
var thumb = new Thumbnail( jpgFile );
// Get the Metadata
var md = thumb.synchronousMetadata;
// set the namespace
app.synchronousMode = true;
md.namespace = "http://purl.org/dc/elements/1.1/";
// set the property
md.description = "Testing 1,2,3";
// Make sure the Bridge UI sees the change
thumb.core.metadata.cacheData.status = "bad";
If I change my script to use "Description" then the script sets a new, bogus property "dc:Description" in the XMP.
I recommend always keeping a copy of Part 2 of the XMP Specification handy when writing any scripts that modify metadata. Double check the spec for the correct namespace URIs and property names. Get the spec here: http://www.adobe.com/devnet/xmp/
-David

Similar Messages

  • What is the best metadata field for picture TITLE?

    Hi -- as stated: what is the best metadata field to use to hold the title of a picture?
    I've been using the IPTC field "Title", but:
    - I think this is actually used for a person's job title, not the title of a picture, and
    - I can't get it to show up in BorderFX (though it does show in Images exported and viewed in Preview)
    "Caption" and "Headline" seem to be obvious choices.  I'm looking for something is widely used, so that the titles I give my pictures will stay with them and be available to other programs and users after I export the Images from Aperture.
    Thanks for you advice!
    Kirby.

    Correcting myself. After reading the User Guide it appears that the title does go in the Title field, imagine that.
    IPTC Core Status section
    Title
    This field can be used as a shorthand reference for the image or “photograph” — primarily for identification. The title of an image should be a short, human-readable name — text and/or numeric reference —and may take several forms; for photographers this might be the filename of their original scan or digital camera file, for news organizations it might be the name of the story for which it’s to be used. (Note that there are new terms in the IPTC Extension which can also be used as image ID’s, if you are concerned about this field being overwritten later in the workflow). The Title term should not be confused with the Headline term, which is a short synopsis of the content of the photograph. There is a button in the panel which can be used to add the current file name to the Title field; however this will not work with a selection of images.
    IPTC Core Content section
    Headline
    A headline is a brief publishable synopsis or summary of the contents of the photograph. Like a news story, the Headline should grab attention, and telegraph the content of the image to the audience. Headlines need to be succinct. Leave the supporting narrative for the Description field. Do not, however, confuse the Headline term with the Title term.
    (emphasis added)

  • Extract the description metadata before placing.

    How to get the description metadata of an InCopy file without placing it, I mean from the XMPFile.
    I have this code but it's give me an empty string also I'm sure that there is a description.
    if (ExternalObject.AdobeXMPScript == undefined)
              ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
    var xmpFile = new XMPFile("/Users/Designer_002/Desktop/temp/Blocks/Block.210.00.incx", XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ);
    var xmp = xmpFile.getXMP();
    alert(xmp.getProperty(XMPConst.NS_DC, "description"));
    xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);

    Thanks it's worked, I needed to write "description[1]" instead of "description".
    Look at this snippet from the above mentioned article part 2:
    Almost all data stored here is in ‘Array valued XMP properties’. For example if we want to get‘description’ and we use methods from above,
    1
    var myDescription = myXmp.getProperty(XMPConst.NS_DC,'description');
    we will get empty string. Thet’s because ‘description’ data is inside ‘XMP Array’. So, how to retrieve data stored there? First way is to add ‘Array’ number at the end of node name like this:
    1
    var myDescription = myXmp.getProperty(XMPConst.NS_DC,'description[1]');

  • What are the different metadata fields for in the Metadata presets?

    The metadata preset box has a comprehensive array of metadata sections and fields. I just don't know what a lot of them should be used for. Some of them appear to duplicate headings in other fields, albeit with different names.
    Can someone tell me what kind of information the following fields are meant for?
    Basic Info
    Label - I've seen this used for the authors credit. The "Creator" and "Copyright" fields seem to take care of this though. Should it be used for something  else?
    Copy Name - ?
    IPTC Content
    Headline - I've read that this is for describing the content. Isn't the "Caption" field in Basic Info for this?
    IPTC Subject Code - ?
    Description Writer - The author/creator? If not, who?
    IPTC Image
    Intellectual Genre - Same as "Category"?
    ISO Country Code - ?
    IPTC Status
    Title - This may seem obvious, but the title often appears in the caption.
    Job Identifier - I'm assuming this is for applying information pertinent to the author's filing system. If I'm wrong, what is it for?
    Instructions - as above?
    Provider - Author again?
    Source - Author yet again?
    I'm sure there will be those who will argue that some or even most fields can be used for whatever information we wish to put in. My point is that they must be there for specific reasons.
    Oh yes, before someone points me in the direction of the IPTC website, I've been there already and it was full of gobbledygook!
    Thanks in advance.

    Also on the IPTC photo metadata site is a more approach able guide to using the fields:
    http://www.iptc.org/std/Iptc4xmpCore/1.0/documentation/Iptc4xmpCore_1.0-doc-CpanelsUserGui de_13.pdf
    This guide was written for the original 1.0 IPTC Core specification, but I think it covers most of the terms you want to understand better. Specifically, it talks about the different roles the Headline, Title and Description (aka Caption) play as well as the Creator, Source and Provider.
    Examples:
    Headline:
    A headline is a brief publishable synopsis/summary of the contents of the photograph. The Headline term should not be confused with the Title term.
    Description:
    The Description field, often referred to as a “caption” is used to describe the who, what and why of what is happening in the photograph. If there is a person or people in the image, this caption might include their names, and/or their role in the action that is taking place. If the image is of a location, then it should give information regarding the location....
    Here are three other places you might want to look for or ask about how other photographers are using the metadata:
    The PhotoMetadata.org web site
    http://www.photometadata.org/
    David Rieck's ControlledVocabulary.com
    http://www.controlledvocabulary.com/
    -See Resources > CV Forum to find the Yahoo! groups forum for the site.
    Peter Krogh's, the DAM Book site and forum:
    http://www.thedambook.com/
    http://thedambook.com/smf/index.php
    The "Label" field is used to control the colored label that's displayed for the file in Lightroom, Bridge and (when opening multiple files) in the Camera Raw plugin. Both Lightroom and Bridge ship with default values mapped to the six-standard label colors. In Lightroom choose the Metadata > Color Label Set > Edit... to change them. In Bridge, use the Label panel in the Bridge preferences dialog.
    You can really use this for whatever you need, but unlike the other terms defined by the IPTC, you should not necessarily expect others to use them for the same thing. Putting the photographer's name there probably doesn't make much sense. I know one Photographer who's assigned the name of a stock agency to each of the label colors so he can track what file was sent to what agency.
    -David

  • Edit the 'Employment status' field in IT 0000

    Hi,
    Normally the Employment status is greyed out and not editable when we are running Personnel actions . It defaults Active, Inactive , Withdrawn as per the settings that we have made.
    Is there a standard way that this field is editable when we are running the Action , for eg. org reassignment. ..
    BR
    SK

    Hello,
    This is not the standard practice from SAP to make the field Employement Status as editable. the value is configured when you configure the personal actions in Table T529A
    BR
    Sonu Gupta

  • How tochange the description ofa field inthe parameter form query generator

    I have a parameter form which is fetching the details from the Location table.
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    when i execute the parameter form Query selection criteria displayed is
    Name
    OLCT table the description of the field location is Name i want to change the description to location
    Please Help

    Thanks for the reply , It does not help.
    If meant the selection box when I run query to input values
    for example
    /* Select From [OINV] T1 */
    Declare @FromDate Datetime
    /Where/
    Set @FromDate = /* T1.DocDate*/ '[%1]'
    /* Select From [OINV] T2 */
    Declare @ToDate Datetime
    /Where/
    Set @ToDate = /* T2.DocDate*/ '[%2]'
    /* Select From [OLCT] T3 */
    Declare @FromLoc Varchar(300)
    /Where/
    Set @FromLoc = /* T3.Location*/ '[%3]'
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    /* Select From [OLCT] T5 */
    Declare @Country Varchar(300)
    /Where/
    Set @Country = /* T5.Country*/ '[%5]'
    /* Select From [OLCT] T6 */
    Declare @State Varchar(300)
    /Where/
    Set @State = /* T6.state*/ '[%6]'
    Exec [SAP_SP_DB]..[NABC_TaxReport] 'SAP2007B','Inflow',@FromDate,@ToDate,@FromLoc,@ToLoc,@country,@state
    In the above query I have from and To Location which displays as Name in the selection box

  • Search the IPTC metadata field "Source" in Lightroom 5?

    How is it possible to search for photos in Lightroom 5, where the IPTC field "Source" is empty? Is it possible to add additional metadata fields to the Library Filters?

    The only way to search the IPTC Source field in LR is to use the "Searchable IPTC" criterion:
    This searches all the "searchable" IPTC fields (Adobe doesn't specific exactly which fields those are, but they do include Source).
    However, you want to find photos whose Source field is empty.  LR doesn't have an "is empty" criterion for most fields, but the normal way you'd work around that, e.g. for Title, is to do:
    Title Doesn't Contain a b c ... x y z 0 1 2 3 4 5 6 7 8 9
    Unfortunately, that workaround won't work in your case, since
    Searchable IPTC Doesn't Contain a b c ... x y z 0 1 2 3 4 5 6 7 8 9
    would only return those photos all of whose IPTC fields are empty.  If there was a photo with a non-empty IPTC Headline and an empty Source, this criterion wouldn't return the photo.
    To search the Source field in particular, you'd need to use a third-party plugin, e.g. ExifMeta, Data Explorer, or Any Filter.

  • How can you edit the Email Address field in Mail without deleting the account?

    I have a few accounts and the email address domain of my work account has changed but it seems to be one of the fields you cannot change.
    On my iPhone it was simple ... you can just edit the field and it works.
    My Email comes in fine but mail auto selects accounts based on the domain of who you are emailing and now that it has changed its not doing that anymore.

    If you're running iOS 6, to change your iCloud ID go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.

  • How to edit the description of web templete.

    Hi all,
    Please help me for the following problems.
    I have created some webtempletes and transported from dev to quality system.
    Now my requirement is
    1.  I have to change the description of webtemplete.
    2. I have to change the header links in the webtempletes.
        while I am changing the header links I am getting the error as follows
    Object can't be processed due to transpotation problem.(I am unable to save the web templetes after the changes made).
    friends please help me for these two issues.
    Thanks,
    James.

    Hi James,
    You must have assigned a development class(package) to the web template.Now since you have transported the object, to make any more changes the same development class(package) needs to have a default transport request.
    The same can be assigned by clicking on the "BEx" button on the transport connection tab in rsa1.
    once assigned you can make the changes in the web template.
    To change the description goto the properties of the web template on the left hand select the web template and change the description.
    hope it helps,
    regards,
    Parth.

  • Is there any way to edit the pdf text field design?

    I dont want a black frame around text frames when a form is printed...
    In Livecycle you could define various properties (like sunken box etc.), but not in FormsCentral?

    If you have Acrobat Pro you can edit a pdf form file to have the various field border properties that you describe.  You would create the form in FormsCentral and save as PDF.  Then you would do a Save a Copy on the form.  Open the copy and select Tools->Form->Edit.  You can then select the fields and set the border in the Properties dialog in the appearance tab.  Once you have the form looking the way you want you would then re-import the copy into FormsCentral and send the file out to the world.

  • In J1IEX  to edit the excise invoice field

    Hi,
    I want to post the vendor Excise invoice through J1iex.
    but during Good receipt , by mistake Invoice number is entered wrong.
    so I want to to change the excise invoice number in j1iex during posting.
    but this field is grey out, so how i will make it editable.
    i am waiting your reply.
    Thanks
    Shital D

    Hi Sheetal,
    Note number 1285986 is already applied in ECC 6.0 . We have to revert back of some code from the note. Please call a ABAP guy and give the same guideline as I mentioned below.
    Comment this code from include LJ1IEXKS4 from line number 3819 to 3823.
                IF lv_chflag = 'N'.                                "Note 1285986
                  APPEND 'J_1IEXHEAD-EXNUM'       TO lt_fields.    "Note 1285986
                  APPEND 'J_1IEXHEAD-EXDAT'       TO lt_fields.    "Note 1285986
                ENDIF.                                             "Note 1285986
              ENDIF.                                             "Note 1285986
    Thanks
    Sandeep Jain

  • Prevent User from Editing the Credit Limit Field

    Hi
    I would like to find out if there is a way to restrict user that has full authorisation to BP Master Data from changing a specific field on the Master Data.
    The scenario is that we allow an user to edit BP Master Data but would like to prevent the user from changing the credit/committment limit fields as it has financial risk and only managers can do so.
    If there any way within the stand SAP authorization that can achieve this requirement?
    BR,
    Jimmy

    Hi Jimmy,
    This would not be achievable through standard authorization.  You may try SP_Transaction_Notification instead.  Search within forum, there are many threads discussing this SP.
    Thanks,
    Gordon

  • Is Lightroom (LR5) Capable of Editing the Geotag Metadata of VIDEO Files (.mov)?

    I am trying to add a geotag to a .mov file using Lightroom. It appears that I can add it to the GPS information of the file's metadata, but then when I right click and go to Metadata, the option "Save Metadata to File" is greyed out. Is it possible to do this using LR5?

    Unfortunately, LR's support for video metadata is very limited.  Please add your vote to this thread in the official feedback forum:
    Lightroom: LR4 Beta: Metadata applied to videos in Lightroom isn't available in other applications

  • Can be edit the equipment category field in equipment  master

    Dear all
    Please help me , i want to change equipment category in equipment master .
    this is possible?
    Raghav

    In the equipment master IE02 transaction go to the menu options:
    Edit -> Change Equipment category (Shift+F4).
    System prompts a new screen to enter the diff category.
    Praveen

  • Need 2 metadata fields from item I am running a approval workflow on to show up on the task list

    I have document library "A" that contains many documents with 6 columns of metadata. I have a simple approval workflow for the library that works as it should in functionality. My users would like it if 2 fields of metadata from the items in library
    "A" would show up in the Task list so they could track the tasks by the 2 fields. Can anyone point me in the right direction here to make this happen? Working in SP2010 with Designer 2010 and IP 2010.
    Thanks 

    Hi Ross,
    According to your description, my understanding is that you want to display two managed metadata fields in the associated tasks created in the approval workflow.
    I recommend to edit the approval workflow in SharePoint Designer and new two task fields to display the two managed metadata fields.
    Here are the detailed steps:
    Open the approval workflow in SharePoint Designer and click Approval in Start Approval Process step.
    Click New to create two task form fields in single line of text type.
    Click Change the behavior of a single task under Customization.
    In Before a Task is Assigned step, select Set Task Field under Task Behavior Actions and then set the newly created task form fields to get the values in the managed metadata fields of current item.
    Please refer to the picture below(create a task form field called Managed Metadata for example and mm is the managed metadata column in the list):
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • ITunes Producer error message

    After loading an epub onto iTunes Producer I received the following:  ERROR ITMS-3000: "Line 522 column 29:element"dat_file" incomplete; missing required element "checksum".  Any idea on the problem?  Thanks.

  • Another quick query: keyboard shortcut for strikethrough?

    I've noticed the shift+apple+Q shortcut no longer works on CS4 for strikethrough, it goes to the help menu instead . Is this hidden somewhere else, or do I need to set it up in preferences? I'm not sure I would change this. I would appreciate the hel

  • Where we assign tax out type

    Hi expert , could you plz tell me where we assign tax out condition type in sap SD ? regards, Bhaskar.k

  • Links to famous places in "media menu"

    When I click the media button on my N78 and turn to the Maps page, there are som map links to famous places like Louvren, the Opera house in Sydney etc. How do I get rid of these links? From the help text in the phone I understand that the links show

  • External Drive is Locked After Archive and Install

    Hello, I took my iMac to the Apple Store this morning to have the Hard Drive worked on. (Permissions on the Library were messed up somehow) The woman at the Genius Bar did an A&I (keeping the home folder the same) which did the trick. I now come home