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]');

Similar Messages

  • [svn:osmf:] 14486: Add stream metadata support by extracting the actual metadata object from the binary data stream .

    Revision: 14486
    Revision: 14486
    Author:   [email protected]
    Date:     2010-03-01 14:27:41 -0800 (Mon, 01 Mar 2010)
    Log Message:
    Add stream metadata support by extracting the actual metadata object from the binary data stream.
    Fix bug 466
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/Media.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FStreamInfo.as

    same problem, data not replicated.
    its captured,propagated from source,but not applied.
    also no apply errors in DBA_APPLY_ERROR. Looks like the problem is that LCRs propagated from source db do not reach target queue.can i get any help on this?
    queried results are as under:
    1.at source(capture process)
    Capture Session Total
    Process Session Serial Redo Entries LCRs
    Number ID Number State Scanned Enqueued
    CP01 16 7 CAPTURING CHANGES 1010143 72
    2. data propagated from source
    Total Time Executing
    in Seconds Total Events Propagated Total Bytes Propagated
    7 13 6731
    3. Apply at target(nothing is applied)
    Coordinator Session Total Total Total
    Process Session Serial Trans Trans Apply
    Name ID Number State Received Applied Errors
    A001 154 33 APPLYING 0 0 0
    4. At target:(nothing in buffer)
    Total Captured LCRs
    Queue Owner Queue Name LCRs in Memory Spilled LCRs in Buffered Queue
    STRMADMIN STREAMS_QUEUE 0 0 0

  • 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

  • Subject: extract the string before space

    I have a string say "aquarium a". i want to extract the string appearing before the space and discard the string appearing after space.
    that is the resultant string required is "aquarium". any number of characters can appear after space.
    is it possible to solve using replace() method. i cant hardcode space+character in replace method because number of characters after space is not known.
    Is there any easy way to get the required result

    > i want to check if a string has space in between then
    only this code should run otherwise this code should
    not run. because if a string doesn't have any space
    inbetween then the above code will give error.
    String s = "aquarium a";
    s = s.split("\\s")[0];
    assert s.equals("aquarium");At this point, it would be a good idea to familiarize yourself with the String API. That way, you'll have a better idea how to accomplish your specific requirements.
    ~

  • Plug-in to Extract Camera RAW Metadata

    Hello,
    I am new to Photoshop plug-in development and reading the Photoshop SDK helped a little, but not much.
    Because Photoshop doesn't have the tools and also because there are no plugins available that are capable of extracting all or specific metadata from different RAW camera files that my company needs, I am left with the job of writing a plugin to specifically extract the necessary metadata from these RAW camera files.
    I am looking through all the categories of different types of plugins(import, export, file format, filter, etc.) that I have to decide that fits the purpose that I am trying to accomplish. Being new at this, I am even stuck there.
    So if anyone have some tips that can get me started and help me on my way during development, any help will greatly be appreciated.
    Thanks in advance!
    T. Tran

    I'm in the same boat.
    I'm also trying to extract some metadata to incorporate into a web gallery template (specifically to show the original filename against the current filename for tracking, and archival cross-reference). Dealing with a large number of images (in the hundreds of thousands) any way to do this would relieve a lot of redundant data entry.
    -Warren

  • How do I display the DRM Metadata in a human-readable format?

    1. Ensure you're working with a metadata binary - if you extracted the DRM metadata out of an HDS or HLS manifest (.f4m or .m3u8), you will have to base64-decode the string into a metadata binary.
    2. Run this following Java command line tool, which is available on your Adobe Access SDK DVD:  java -jar libs/AdobePackager.jar -dm <name of metadata file>
    cheers,
    /Eric.

    When the viewing pane should be on the bottom: drag the bottom line up (it is in effect two lines in the same place).
    If the viewing pane is expected on the right: same, drag the line on the right to the left.

  • How to extractt the column metadata like is auto_increment

    Hi, all
    I can't able to extract the column metadata like is auto increment.
    Is it posible in JDBC????????
    Thnax
    sussec

    Wait, I might be incorrect.
    If you look in java.sql.ResultSetMetaData, you'll see a method isAutoIncrement(int column) that returns boolean. Maybe that's what you need.
    %

  • How can I get a total page count of a PDF before placing every page in the PDF?

    Before the [long] spiel, I'm using javascript in InDesign CS3.
    I'd like to create a script that places a multiPage PDF in any number of different impositions. (saddle stitch, 4up signatures, 16up signatures etc.)
    I've easily created a script that iterates through a PDF and places it into a new document as (4,1|2,3), (8,5|6,7) etc, which works for printing in duplex, folding each page in half, and gluing the resulting spines to make a simple thick book (for PDFs with more than, say, 64 pages).
    However, the next step is to re-write the script to create a saddle stitch document (16,1|2,15), (14,3|4,13) ... (10,7|8,9). For this I need to know how many pages there are in the PDF before I start placing the PDF pages, and then making the new document [int((PDFpages+3)/4)] pages long.
    Is there a simple way to get the count of PDFpages without going through a loop and placing the next page from the PDF until the placed page number equals the first page number?
    This way seems wasteful:
    var totPDFPages = 1;
    app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    var pdfFirstPage = myPDFPage.pdfAttributes.pageNumber;
    while (doneCounting == false) {
    totPDFPages += 1;app.pdfPlacePreferences.pageNumber = totPDFPages;
    myPDFPage = sheetFront.place(File(srcPDF), [0,0])[0];
    if (myPDFPage.pdfAttributes.pageNumber == pdfFirstPage) {
    totPDFPages -=1;
    doneCounting = true;
    alert("PDF has " + totPDFPages + " pages!");exit();
    myPDFPage.remove();
    NB. Javascript above *hasn't* been run, but should look similar once debugged.
    The only thing I've though of to relieve the sheer duplication of placing the PDF twice (once for the count, and once for the imposition), is to create an array of impoPages[counter]=myPDFPage, and then shuffle the pages referenced by the array to the correct sheet and position.
    It'd be much easier to be able to assign pageCount = File(srcPDF).pageCount !!!
    Thanks for any help/tips or even a simple "What are you smoking, man!?"
    Cheers,
    Jezz

    this will get almost all pdf pages count.
    jxswm
    function getPDFPageCount(f){
      if(f.alias){f = f.resolve();}
      if(f == null){return -1;}
      if(f.hidden){f.hidden = false;}
      if(f.readonly){f.readonly = false;}
      f = new File(f.fsName);
      f.encoding = "Binary";
      if(!f.open("r","TEXT","R*ch")){return -1;}
      f.seek(0, 0); var str = f.read(); f.close();
      if(!str){return -1;}
      //f = new File(Folder.temp+"/123.TXT");
      //writeFile(f, str.toSource()); f.execute();
      var ix, _ix, lim, ps;
      ix = str.indexOf("/N ");
      if(ix == -1){
        var src = str.toSource();
        _ix = src.indexOf("<< /Type /Pages /Kids [");
        if(_ix == -1){
          ps = src.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
          if(ps == null){
            ps = src.match(/obj <<\\n\/Type \/Pages\\n\/Count (\d+)\\n\/Kids \[/);
            if(ps == null){
              ps = src.match(/obj\\n<<\\n\/Type \/Pages\\n\/Kids \[.+\]\\n\/Count (\d+)\\n\//);
              if(ps == null){return -1;}
              lim = parseInt(ps[1]);
              if(isNaN(lim)){return -1;}
              return lim;
            lim = parseInt(ps[1]);
            if(isNaN(lim)){return -1;}
            return lim;
          lim = parseInt(ps[1]);
          if(isNaN(lim)){return -1;}
          return lim;
        ix = src.indexOf("] /Count ", _ix);
        if(ix == -1){return -1;}
        _ix = src.indexOf(">>", ix);
        if(_ix == -1){return -1;}
        lim = parseInt(src.substring(ix+9, _ix));
        if(isNaN(lim)){return -1;}
        return lim;
      _ix = str.indexOf("/T", ix);
      if(_ix == -1){
        ps = str.match(/<<\/Count (\d+)\/Type\/Pages\/Kids\[/);
        if(ps == null){return -1;}
        lim = parseInt(ps[1]);
        if(isNaN(lim)){return -1;}
        return lim;
      lim = parseInt(str.substring(ix+3, _ix));
      if(isNaN(lim)){return -1;}
      return lim;

  • I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description fie

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

    I'm currently using Adobe Acrobat X to create PDF portfolios for client deliverables. Within the portfolio, there is a "Files" view which can be seen below. I'm interested in knowing if it's possible to bulk import metadata into either the Description field or any user created field via a CSV, spreadsheet, etc. Thanks for any insight which can be given.

  • Why can't I preview a book I created in iPhoto before placing the order

    How
    do I preview a book i created in iPhoto before placing the order

    Hey scottiegal1,
    This article explains how to preview your iPhoto book order before placing it  -
    iPhoto, Aperture: Previewing an order in iPhoto or Aperture - Apple Support
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • Purpose of extracting the metadata after loading the metadata

    Hi Hyperion experts,
    AFTER loading the metadata in File what is the reason to go for extracting and where we will use

    I keep the XML files around after every load for a variety of reasons :
    - Loading to other applications : I'll generally make changes in dev / test and move to production. I guess I could probably get LCM to do the moving around; however, we're not big users of it at this point. I just load the file into the next app. It's pretty easy to open the client and hit load metadata. ;)
    - Historical Records : Since I keep a copy of every 'major' load into the system, I can easily 'roll back' or tell you when a change was made as far back as I want.
    - SOX Audits : Part of our controls is to ensure that changes loaded to production are approved through our documentation process. Having the files allows them to confirm what changes were made when.
    - Point in Time comparisons : Pretty much just like the SOX Audit, I will periodically review two points in time to see what has changed. For instance, every year when I roll out our budget Smartview template, I compared the current metadata to the prior year to do a quick check to see what accounts have changed. Depending on what has changed during hte last year, I may need to update my template accordingly, etc. [I use an XML differencing tool to do the comparisons]
    - Insurance : ' I'm not paranoid, I just know everyone is after me ' While I keep backups of my databases, etc, etc, I like having the file versions 'just in case'. If any of my other tools malfunction or I lose a backup, I can always grab my trusty files and reload.

  • I'm using LR 4.4.  How do I extract the metadata from my images and export it into Excel?

    I want to extract the metadata I have added to my images and export it into an Excel spreadsheet.  Can this be done within LR4.4?  If the software doesn't have a function for this is there another way to do it?
    Thanks for any help you can offer.

    JB's ListView is the most straight-forward solution, but
    ConfidentialInformant
    allows for full customization (e.g. if you want to pick and choose custom metadata fields, or export more fields than ListView supports (10), or tweak data formats, or add intelligence...).
    Rob

  • Hi.  I'm trying to set-up the wireless access times in my Airport Utility.  I need to enter the "Description" and the "MAC Address" of each wireless client before I assign access times. What are these?  Thanks.

    Hi.  I'm trying to set-up the wireless access times in my Airport Utility.  I need to enter the "Description" and the "MAC Address" of each wireless client before I assign access times. What are these?  Thanks.

    Let's say that an iPhone is one of the wireless clients that you want to allow access to the network.
    The Description of this device is anything that you want to specify for easy identification purposes. For example, the Description might be something like......
    Rex's iPhone
    The MAC Address, also known as a Wi-Fi Address is  a unique indentifiction number that is assigned to every device. The number will always follow this form:
    xx : xx : xx : xx : xx : xx, where "x" could be a number or letter.
    To find the MAC Address or Wi-Fi Address of an iPhone or iPad.....
    On the Home screen.....
    Tap Settings
    Tap General
    Tap About
    Wi-Fi Address is the item that you want
    If you have a Mac computer......you can find the MAC Address or Wi-Fi Address as follows:
    Open System Preferences (gear icon on the dock)
    Open Network
    Click on Wi-Fi on the left
    Click Advanced at the lower right
    The Wi-Fi Address for the Mac is located at the bottom of the window
    Other wireless devices usually have the MAC Address or Wi-Fi Address on the label on the back or bottom of the device

  • When I try to bookmark a web page, Firefox will frequently save the bookmark to the default location, before I have finished typing the description

    To bookmark a page, I click on the BOOKMARK menu, then click on BOOKMARK THIS PAGE. I start typing the description of the page in the NAME field.
    Frequently, before I can finish typing the description, Firefox will close the popup window, saving the bookmark to the default location. At this point, I repeat the procedure to add a bookmark, finish typing the description, and specify the correct folder location.

    '''bold text'''I've tried several different virtual pdf printer applications including:
    Foxit pdf printer
    doPDF v 7
    Nitro PDF driver v5
    NovaPDF
    Simpo PDF Creator
    qvPDF
    Virtual PDF Printer
    I took screenshots of the same small section of a sample pdf file saved to pdf using the virtual pdf printer freeware doPDF v7.
    Both test screenshots were taken on the same computer, a laptop running Vista Home Premium.
    You can clearly see the problem!

  • I ran my iphone over but need to access my contacts/info/pics. I have a up to date backup of my whole phone in iTunes but need to know how to extract the data and load it to my new desktop since it will be a bit before I can afford a new phone.

    I accidentally ran my iPhone over and can't afford another one for a few weeks. Until then I need to find a way to extract the data from my last backup in itunes. I can either put it on my computer or I've set up a cloud account that I was hoping could open it. So far I haven't had any luck with either. if anyone can help me out. I would love to get my pictures/videos, messages and contacts off there. The rest I don't care so much about. If someone could let me know if this is possible I would apprciate it!

    Thanks. I messed up with my husbands iphone because I was told the wrong thing. Now everytime I sync his phone it makes it look just like the other phone I had. Do you know how I can fix taht for his phone? Any settings I can turn off that will prevent all of my apps/contacts, etc from auto populating his phone?

Maybe you are looking for

  • Videos from iphone 4 to aperture

    Hi, I have searched the forums, but the posts relating to this issue have all been archived "unresolved". Aperture does not seem to be able to import videos from my iPhone 4. It simply does not see the videos present on the iphone, while iPhoto does

  • Parameter in Query manager running stored procedure

    Hi Experts! I have a stored procedure, which is waiting a parameter. I would like to write a query in sap with parameter using sap language: exec sp_leltar [%0] The parameter is numeric, but when running the query above, it is giving an error:"Userde

  • Reg payment as per usage decision

    Dear all, please give advice regarding the 3 scenarios scenario 1.:    Sent material for subcontracter for making 10 materials , stock received 10 numbers out of which in usage decision we have put 8 in unrestricted and 2 in block, during invoice in

  • Transport - Test system

    Hi, In the test system, RSA1-> Tools -> Conversion of Logical System Names: I know that we need to map R/3 Dev (original Source) -> R/3 test (Target source). 1. Do we also need mapping for BW Dev -> BW Test 2. When do we check the 'Only 7.0' column'?

  • NWDI configuraion

    Hi Portal Guru How to configure NWDI in EP CE 7.1? Regards Sumit