Combining data from iptc fields

Hello group. Happy New Year.
I'm looking for a script which would perform an action of copying data from the city, state/prov and country fields and adding that data to the description field. I still wish to retain the content in the description field. My stock agency is requesting this be done in order to create a more complete picture caption for web display.
Hoping the list can help! Thanks
Don

Sorry about that Don, NEF files are a pain in the backside
Hopefully this code will work for NEF file only!
It update the xmp file so after it has run you would need to refreash the folder (or select a diffirent folder and go back)
#target bridge  
if( BridgeTalk.appName == "bridge" ) { 
combineFields2 = MenuElement.create("command", "NEF Details to Description", "at the end of Tools","cfta2012");
combineFields2.onSelect = function () {
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var sels = app.document.selections;
for(var z in sels){
var Name = decodeURI(sels[z].spec.name).replace(/\.[^\.]+$/, '');
var file = File(sels[z].spec.path + "/" + Name +".xmp");
if(file.exists){
     file.open('r');
     file.encoding = "UTF8";
     file.lineFeed = "unix";
     file.open("r", "TEXT", "????");
     var xmpStr = file.read();
     file.close();
     }else{
         var xmpStr='';
     var xmp = new XMPMeta( xmpStr );
var arrItem=[];
var items = xmp.countArrayItems(XMPConst.NS_DC, "description");
for(var i = 1;i <= items;i++){
arrItem.push(xmp.getArrayItem(XMPConst.NS_DC, "description", i));
try{
var Desc = arrItem.toString();
var City = xmp.getProperty(XMPConst.NS_PHOTOSHOP, "City");
var Country = xmp.getProperty(XMPConst.NS_PHOTOSHOP, "Country");
var Region =  xmp.getProperty(XMPConst.NS_PHOTOSHOP,  "State");
var DescAll = Desc + "\r" +City + "\r" + Region +"\r" + Country;   
xmp.deleteProperty(XMPConst.NS_DC, "description");
xmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", DescAll );
file.open('w');
     file.encoding = "UTF8";
     file.lineFeed = "unix";
     file.write( xmp.serialize() );
     file.close();
     }catch(e){alert(e+"-"+e.line);}

Similar Messages

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

  • How to retrieve data from a field of CLOB datatype?

    How can I retrieve data from a field of CLOB datatype in Oracle
    8 being called from an ASP or VB application? The recordset
    object in ASP or VB doesn't support the CLOB datatype.
    Thank you in advance for your help.

    How can I retrieve data from a field of CLOB datatype in Oracle
    8 being called from an ASP or VB application? The recordset
    object in ASP or VB doesn't support the CLOB datatype.
    Thank you in advance for your help. Hello.. were you able to solve your problem? I'm faced with pretty much the same task.. I have a VBA application that needs to pull various pieces of data(CLOBs, BLOBs, etc..) from an Oracle8i db.

  • How to extract data from the fields present in two or three tables

    Hi Experts,
          I have a scenario where i have to extract data from the fields of different tables. e.g. let there 2 tables which have some number of fields . I want the data of 3 fields each from these 2 tables. How can i get that??
    Sam

    Hi
    You can create view in tcode se11..
    here you include all tables from which you want to fetch the data..
    you need to give selection condition here
    eg..
    say select empname from table A, select empadd from table B.. where empno(from A)=empno(from B)
    (note that you dont need to write queries like this.. i have just given u the example)
    After creating the view you can create datasource in RSO2..
    Regards
    Swati

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Transfer the response data from response field of a webservice.

    Hi Experts,
    I am working on Consuming the webservice in the Adobe Form,
    My requirement is like i have to populate different set of fields from the responses i get from the webservice, based on the click of different buttons.
    Say i have to populate Fields f1 & f2, if Button B1 is pressed, and f3 & f4 if Button B2 is pressed.
    Hope i have made my requirement till now.
    Now i have written the script to shift the data from the fields generated from WebService to the fields where i actually require the data i.e. f1 & f2 in the above case at teh "validate" event of the response fields from webservice.
    but it always gives me some popup stating this field's validate failed, which should not be there.
    So, any help from you that give me a solution that shifts the data immediately on the population of response fields wihout a popup, would be helpful and highly appreciated.
    Thanks,
    Amita

    Hi,
    Consider that you have three fields "f1", "f2", "f3" and want to populate the data in the fields "f2" and "f3" based on the value entered in the field "f1" through webservice.
    So write the JavaScript Coding in the "Change" Event of the field "f1" for eg.
         var cURL = 'http://webservice';
         var service = SOAP.connect(cURL);
         xfa.connectionSet.DataConnectionName.execute(0);
    and there itself after the above script write the other validations for fields "f2" and "f3" and populate the values to the respective fields.
    For Binding to the respective fields: go to the field object pallete and in binding tab define the binding of webservice in the "Import/Export" binding at the Last.
    And if you want to do any validations for the fields "f2" and "f3" then define two more fields like "hiddenf2" and "hiddenf3" and do make the presence of these fields to hidden and do specify the binding of webservice and after the JavaScript WebService call populate do the required validations and after that populate the values to the respective fields.
    Regards
    Pradeep Goli

  • OBIEE 11g - Combine data from two Oracle tables

    Good day!
    I tried to combine data from two Oracle tables as fact data, but it doesn't work.
    My steps: I created SCOTT.EMP2 table from SCOTT.EMP table, update EMPNO and ENAME values of EMP2 table to distinguish data of my tables. Then I imported physical tables DEPT, EMP and EMP2 to BIEE 11g, created joins DEPT-EMP and DEPT-EMP2 in physical diagram. Then I dragged DEPT and EMP tables to BMM, and EMP2 table to EMP as second LTS. In Content tab for EMP and EMP2 I checked "This source should be combined with other sources at this level" checkboxes. Then I renamed logical tables EMP and DEPT to Employees and Departments and dragged them to Presentation area. In Answers I created Analysis with columns DNAME and ENAME.
    The problem is that data on results tab is only from one physical table EMP or EMP2 (depending on the order of sources EMP and EMP2 of LT Employees) and not from both.
    Can anybody help? Am I missed something?
    Al.

    Hi Al,
    I think you have to define the content of the LTS.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_BusModSetup16.html
    You have to specify the content of the different fragments.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_SetUpAggNav3.html#wp1005333
    Maybe you have to add an additional column 'Source' ('EMP1', 'EMP2')
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • Returned data from database field having data type CLOB

    hi..
    i hv table having CLOB field type ... having 12000 char length ... data is present in the field... but when i do select on that field it only returns the limited data from that field for any given row...
    pls let me know wuts may b the problem...
    cheeerrss..

    Are you running the select from SQL*Plus? If so check out the [SET LONG|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12040.htm#sthref2800] parameter.
    HTH!

  • Combining data from different applications

    Dear all,
      I am using BPC 5.1
      I have a "Sales" application with dimensions "account", "entity", "time", "rptcurrency", "category", "product". And another "HR" application with the same dimensions as "Sales" except for "product".
      How do i create a report that combines data from both applications, assuming my dynamic template is opened with a current view of "Sales".
    Cheers

    Hi Lip,
    I just tried what you need and it worked fine.
    In your case, build a report say evdre, for HR application, and for the same sheet, change the current view to Sales and build one more evdre. You get a prompt saying one evdre may break while expanding other.Disable this prompt, belive me , it will work fine.
    The page key of HR application will have all dimensions refering to cvv of HR application, change it to refer to cvv of sales application( for only the dimensions both applications have in common).
    Now the report is dynamic with current view of Sales application.
    Hope this helps,
    Kranthi
    It took to long for me to reply:)
    Edited by: kranthi kumar on Sep 30, 2008 11:53 AM

  • Is it possible to create a report combining data from 2 reports?

    Post Author: swalker
    CA Forum: General
    We are upgrading the application, ServiceCenter.  We have reports that show our Response and Resolution Metrics.  I have 2 set of reports, one for the old version and one for the new version.  I need to combine the results of both reports into 1 and do calculations on the data from both.  Can this be done with 2 sub reports in the main report that does the calculations?  Can 1 report connect to 2 separate databases?  I am using Crystal Reports v8.5. Is there any documentation on this or sample reports?  Can any one please give me some guidance?  Thanks

    Post Author: swalker
    CA Forum: General
    yangster thanks for the quick reply.  I am not really sure about combining reports, so I looked into what you said.  I tried to create a shared variable on the field that I need to share but that field is a running total and I get an error when I try to run the report "This field cannot be used becaus eit must be evaluated later."    So I am not sure what to do now.  Is there a work around for this?  Thanks for any help.

  • How to retreive data from a field that contains a "|" symbol

    Hi,
    Hopefully my title won't confuse anyone .
    Well I am trying to create a group which would display an employee name(s).
    In my case, the value comes from a field which can contain multiple values separated by a "|" symbol. See picture below.
    I am pretty sure I will have to write a formula for this but simply don't know where to begin or how to write it.
    Table use in this example is "ProductionProjectGroups" and will be linking this table to the "Employees" table which will display the actual employee name.
    Does anyone knows how to display data if there is a "|" symbol in the field?
    If you request more info please let me know.
    Thank you in advance for the help.
    Joe

    Hi Abhilash,
    I am looking for help on how to extract the employee's name from this field.
    I have also posted more pictures with details as requested.
    Thank you
    Joe

  • How to replicate data from custom field in SRM to ECC

    Hi,
    I am using SRM 5.0, as per my requirement i need to get data from SRM (Web GUI) through custom fields in "Confirm Goods",
    and need to pass this data to ECC,
    I found that Message type MBGMCR; IDOC Type u2013 MBGMCR01 can be used for passing the data from SRM to ECC,
    How can i pass the new data to this IDOC in SRM
    and how can i get the data from this IDOC in ECC
    Please help.
    Thanks in advance,
    Jerin.
    Edited by: Jerin Joseph on Jul 23, 2009 5:06 PM

    Hello,
    This will help you.
    Re: Replicating GR custom fields from EBP to SAP R/3
    Thanks
    Ashutosh

  • Save form with data from a field

    Hi,
    Is there an option to save the form with the data from one of the fields?
    Example:
    form field "Name", user enters Will William.
    Can I use this to autmatically save the form in the end as "Will William" and choose the save location?
    Thanks

    That's possible, but it requires privileged JavaScript code. This means code that's either in a folder-level JavaScript file or in a certified document that is trusted to execute privileged JavaScript. For more information, see the following tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • Moving data from custom fields to ekko table

    Hi Experts,
    I added new custom tab into me21n,me22n,me23n header thro me_gui_po_cust and me_process_po_cust.
    If i enter values in my custom fields, transport_from_model this method is not triggering.i have written below code in this method.
    METHOD if_ex_me_gui_po_cust~transport_from_model.
      DATA:     l_header  TYPE REF TO if_purchase_order_mm,
                ls_mepoheader  TYPE mepoheader,
                ls_customer TYPE ci_ekkodb.
      CASE im_name.
        WHEN subscreen.
          mmpur_dynamic_cast l_header im_model.
          CHECK NOT l_header IS INITIAL.
          ls_mepoheader = l_header->get_data( ).
          CALL FUNCTION 'ZMM_GET_DATA'
            EXPORTING
              im_ebeln       = ls_mepoheader-ebeln
    *            im_ebelp       = ls_mepoheader-ebelp
           IMPORTING
             ex_data        = ls_customer .
          MOVE-CORRESPONDING ls_mepoheader TO dynp_data_pbo.
          MOVE ls_customer-ztender TO dynp_data_pbo-ztender.
          MOVE ls_customer-zemdapplicable TO dynp_data_pbo-zemdapplicable.
          MOVE ls_customer-zpbgapplicable TO dynp_data_pbo-zpbgapplicable.
          MOVE ls_customer-zemdamount TO dynp_data_pbo-zemdamount.
          MOVE ls_customer-zemdvalidity TO dynp_data_pbo-zemdvalidity.
        WHEN OTHERS.
      ENDCASE.
    ENDMETHOD.
    i cant move my values entered in custom fields to ekko table.
    please help if u know..
    regards,
    Kavitha
    Edited by: Matt on Mar 23, 2011 10:55 AM added  tags

    Hi,
    check this out.. !!
    Import data from Excel to Oracle Database and
    Added link From Ask Tom.. your requirement you would be satisfied.. I supppose.. !!
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:908428873069
    - Pavan Kumar N

  • Is there a way to combine data from multiple responses (collected from different forms)?

    Since FormCentral (FC) doesn't support XFA-based dynamic forms (utilizing form logic), we have a long form that we may need to separate out into smaller PDF forms.  However, the data from each form needs to remain as a group. Wondering if there's a way to combine data form individual forms using FC, or maybe simple solution after-the-fact. I presume there would have to be some sort of unique identifier on each form as a reference.
    NOTE: These are PDF forms imported into FC, not web forms created in FC.

    Hi;
    There are not any methods that FormsCentral provides.  You would not be able to combine it within FormsCentral, you can experiment with exporting the data from FormsCentral to Excel and then combining in Excel.
    Thanks,
    Josh

Maybe you are looking for

  • IPhone 4 Won't Sync Voice Memos to iTunes

    I cannot get my voice memos on my iPhone to sync to iTunes for the life of me.... I have at least 10 and everytime I hit the sync button it goes through the process but never puts them into my library.  I even have the check mark checked.  I read tha

  • Video out to TV

    I just got the Mini-DVI to video adapter, but I can't seem to get it to work with my TV. I tried it with a different one, and it worked, so I know it isn't the cable. The only conclusion I came to was that it wasn't working with mine because the TV I

  • Weird square like Tab Character in Multiline Text

    ebs version 11.5 forms 6i I have a multiline text item that allows the user to keep hitting an "add to text box" button to append to the text in the box. Every time they click the "add to text box" button, the new text should be placed on a new line.

  • Trigger T-Code Synchronously from WD4A

    Hi All, I have a requirment in which I have to trigger a transaction code from WD4A view synchronously. After the transaction code is opened in another window the WD4A component should continue to listen if the transaction code window is closed. e.g.

  • 11gR2 SCAN config with F5 load balancer

    We are getting ready to set up our first RAC 2-node configuration. The hardware had already been purchased before deciding to go with 11gR2. Therefore, we have an F5 load balancer. The question is...can we use the IP address of the F5 in the /etc/hos