Copy reformatted date to custom field

I am scanning a lot of quite old film for which I can only guess at the date taken.  Aperture import puts the timestamp of the scan in the date field.   I have created a custom field "Date Shot".  I will manually enter the date as yyyy-mm-dd (perhaps only year).  I would like to be able to sort all of my photos by Date Shot.  This means copying and reformatting the timestamp for all of my digital photos (in certain projects) into Date Shot.
It looks quite possible using AppleScript.  I have done lots of programming, but know nothing about that language.  Just quickly reviewed the Aperture 3 AppleScript document.
I would appreciate any ideas or code to use as a start for this effort.  I assume one can pick out the date components and reformat using printf-type commands.

I've done some Aperture scripting. Some things work nice some things don't, Aperture is not the best example for first time application scripting. 
There are many good resources on the web
These two from Apple
AppleScript Overview
AppleScript Language Guide
Two other good sites
macscripter.net
macosxautomation
Here is some code that takes a selection of images in Aperture, gets the EXIF date takes the time component from that  and make a custom tag field name Capture Time and puts the time in it.
display dialog "Aperture will Start." & return & return & "Select image(s), press Continue when ready" buttons {"Continue", "Stop"} default button 1
set the user_choice to the button returned of the result
if the user_choice is "Stop" then
  tellme to quit
end if
tell application "Aperture"
  activate
          set imageSel to (get selection)
          if imageSel is {} then
                    error "Please select an image."
          else
                    repeat with i from 1 to count of imageSel
                              tell item i of imageSel
                                        set imageDate to value of EXIF tag "ImageDate"
                                        set s to time string of imageDate
                                         make new custom tag with properties {name:"Capture Time", value:s}
                              end tell
                    end repeat
          end if
end tell
Anyway this should give you a starting point. Good luck.
regards

Similar Messages

  • Copying all birthdates from custom field to regular addressbook field

    is there a way i can copy birthdates from a custom field to regular address book field?
    my current birthdates are not reflecting in iCal - and while there is are solutions to copying custom dates to ical, i would rather work on the solution to copy the custom date to regular birthdate.

    So, if you're sure all your custom dates are birthdays and you want to copy them all to the birthday field.
    First, open Address Book and from the File menu select Export, then +Address Book Archive...+ This saves a backup of your Address Book database in case you don't like the results of the script below.
    Then run this Applescript.
    -- Move all custom dates to birthdays
    -- John Maisey -- 21 June 2009 -- www.nhoj.co.uk
    tell application "Address Book"
    repeat with thisPerson in (people whose custom dates is not equal to {})
    tell thisPerson to set birth date to value of first custom date
    end repeat
    save addressbook
    end tell
    display dialog "All Address Book custom dates copied to birthdays."
    Best wishes
    John M

  • Copying the value of customized fields from one order to other in CRM

    Hi ALL,
    We have added new customized fields in web ui for Sales Order.
    Now when we are using the standard COPY functionality to copy one particular sales order, then all the fields are getting copied into new order except the customized fields which we have added.
    We have created new data elements for our fields and added it by EEWB transaction.
    Please let me know if there is any badi or any other way which we can implement so that our customized fields are also copied.
    Thanks,

    Hi!
    BADI "CRM_COPY_BADI" is the one you are looking for.
    Create badi implementation and assign copy routine to the copy management parameter.
    The parameter can be configured via IMG->CRM->Transactions->Basic settings->Copying Control for Business Transactions->Define Copying Control for Transaction Types.
    I hope it helps you.
    Regards,
    Fukuhara Yohei

  • 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

  • Add data to  custom fields

    hi,
    i have some data to be added to a custon field in PROD.... how sholuld i go around this? can i do this manually in PROD< r is there any standard procedure for this?

    hi if the custom field where in u wish to upload data is in infotype than use PA30, if the master data u wish to upload is in Mass than u may create a BDC or lsmw or you can use the option of fast data entry..
    pl let us know if this meet ur req or u r looking something else
    rgds
    vishal saxena

  • 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

  • BAPI to validate data in customized fields of transaction MIGO

    Hi,
    I have a requirement where we need to add two custom fields to the header tab of MIGO screen. Please let me know if there is any BAPI existing to validate the data entered? If yes, how do we implement it?
    Thanks
    Shanthi

    Check the BADI in SE18....:-
    MB_MIGO_BADI     for header
    MB_MIGO_ITEM_BADI  for item

  • BDT : Uplaod data in Customized fields

    Hi Experts,
               I have added some customized fields with the help of Business Data Toolset(BDT).
    Now the problem is I have to upload mass data and I am not clear How the data would be passed in the customized fields.
    Is there any BAPI or standard functionality to acheive this???
    Please sugest a way .
    Help would be appreciated.
    Regards
    Sourabh Verma

    HI Sudheer,
                  I know that if we add the fields through EEWB they are reflected in this BAPI , But will the fields would be reflected in this BAPI if they are added through BDT??
    Or is there some other way to uplaod the data when BDT is used?
    Help will be appreciated.
    Regards
    Sourabh Verma

  • Problem when Copy PO item with customer fields

    Hi all,
    I've added few customer fields to PO item customer screen via enhancement MM06E005.
    All works well besides item copy functionality - the system creates new PO item and copies everything besides my 2 customer fields.
    Any idea why + how 2 solve ? Is it working via BADI ME_GUI_PO_CUST ?
    Thanks in advance,
    Sagit

    Hi,
    1)Check whether you have set the changes flag in function exit EXIT_SAPMM06E_018 with Z include ZXM06U40 as
          E_CI_EKPO-ZZBNO = WA_EKPO_CI-ZZBNO."Say your Z field
          E_CI_EKPO = 'X'.
    2)Check the following note [SAP Note 407975|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=407975]
    Thanks & Regards,
    Faheem
    Edited by: Md Faheem on Oct 27, 2010 11:28 AM

  • 'copy' address data of customer A to customer B ?

    hi,
    i have the following request:
    We have a (leading) Customer A with all it adress-data (name, street, email, phone........) created in FD01.
    Now we have a customer B. This customer must have the SAME adress-data as Customer A.
    So i thought it would be nice to write an Z-ABAP to change all the data in Customer B to the values of Customer A, which runs every nigt to 'override' the fields.
    But how is the easiest way for that without comparing every single field ???
    Customer A has a adress-number, can i somehow 'connect' this number to Customer B ?
    reg, Martin

    hi,
    i AM the responsible for everything in SAP
    so i am also my own technical consultant.
    well, i have tried this before, and well..........it works. but there is only a 'dirty' way of updating this by an
    update of the table directly in the z-program.
    reg, Martin

  • Get data into custom field.

    hi all,
    Can you please tell me how to get data of particular Business Partner field into the custom field which is enhanced in the business activity (BO:bus2000126) of activity partner.
    Regards,
    Ankush.

    hi,
    ->For getting data from table into Adobe Forms, you need to add code in your WD application only.
    -> You create an UI Element (Interactive Form) for the adobe forms in the Layout.
    -> Give the name of your form (Zpdf) in the Template Source property.
    -> A pop up will appear asking you to make contexts in your application by its own.
    -> Click on Ok and then context will also appear in your Wd application.
    -> Now you can use the context and write the code for getting values in Wddoinit or anywhere you want.
    -> Write select/query or call a FM to fetch the data into an internal table.
    ->Finally bind the internal table with the Contexts created.
    Check out this link :
    /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    I hope it helps.

  • Between operator not appearing for date in custom field of IBASE search

    Hi experts
    I am using CRMCMP_IBSEARCH for search enhacement of IBASE by adding a new fields as valid from date in CRM 7.0.
    I have added the field using append structure in the search structure of IBASE.Now my requirement is i am unable to see the between operator in UI for this date field and also i cannot enter date range for my requirement.
    Any su

    Hi,
    please go to SM34 and open viewcluster CRMVC_DQ
    Check and change here the operators for your component and view / attribute.
    Kind regards
    Manfred

  • My custom fields now show dates. Can't enter names etc.

    I just migrated my Address Book from a Powerbook running Tiger into a MacBook Pro running Leopard. All went smoothly except my custom fields that I used to enter info into now have dates as the only entry option. I cannot find a way to change this and I don't use dates. Can someone tell me how to fix this? Thank you SO much!

    The Custom Fields are set up in Preferences/Template. I would add the new fields to Address Book before importing data with custom fields.

  • Customer field to purchase requisition

    Hello,
    I add the customer field at subscreen of purchase requisition ( at the data base table i add the relative field in ci_ebandb include ) by EXIT_SAPLMEREQ_001 and
    EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003.
    I add the same customer field at subscreen of purchase order ( at the data base table i add the relative field in ci_ekpodb include ) by EXIT_SAPLMEREQ_016 and EXIT_SAPLMEREQ_017 and EXIT_SAPLMEREQ_018.
    The problem is: when i convert the purchase requisition in purchase order, the data into customer field of
    purchase requisition not are transfert in the customer field of purchase order.
    thanks for help,
    Roberto Baldassarre.

    correction **
    tks for your help,
    but i had just done it. I explain with detail my step:
    I add the customer field at subscreen of purchase requisition by
    EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003 (at
    the data base table I add the relative field on ci_ebandb include).
    I add the same customer field at subscreen of purchase order by
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 and EXIT_SAPMM06E_018 (at
    the data base table i add the relative field on ci_ekpodb include).
    Step followed:
    1. add field at EBAN table by CI_EBANDB include
    2. add same field at EKPO table by CI_EKPODB include.
    3. write code at EXIT_SAPLMEREQ_001,EXIT_SAPLMEREQ_003 following
    document's help.
    4. write code at EXIT_SAPMM06E_016, EXIT_SAPMM06E_017 ,
    EXIT_SAPMM06E_018 following document's help.
    5. build dynpro 0111 on function group XM02
    6. build dynpro 0111 on function group XM06
    The problem is: when i convert the purchase requisition in purchase
    order (ME59n), the data into customer fields of purchase requisition
    not are copied in the customer fields of purchase order (this field are
    empty).
    Tks for your help!

  • Add a custom field for Product Allocation

    Hi experts,
    I have copied S140 to S501 to add a custom field for product allocation.
    I have added the custom field in MCVBAKUSR, so it is visible in MCVBAK.
    However, I don't know whether I can populate data into custom field. I searched in forum, someone said it can be done in SAP enhancement MCS10001. But it can't work. I have tried to place a break-point in the code, and seems that throughout the order creation and product allocation check, it hasn't get into the codings in enhancement MCS10001.
    Can anyone give me some idea on it? Thanks.

    You should have simply extended VBAK table. It would've taken care of extending MCVBAK, etc. Then VBAK field would have to be populated in a user exit USEREXIT_CHECK_VBAK in MV45AFZB, when a document is being created/changed.

Maybe you are looking for

  • Point cloud clip doesn't return anything in the result table

    Hi experts, I am wondering why my point cloud clipping function does not return anything into the result table. The boundaries of my point cloud are: min long 316,500 max long 316,643.21 min lat 234,000 max lat 234,105.38 min elevation -4.79 max elev

  • Unbale to start Message Server and Dispatcher

    Hi When i am trying to start j2ee engine, message server and dispatcher are not starting.I have checked in developer trace of message server i got the following error..... <b> [Thr 5076] Fri Nov 16 17:37:39 2007 [Thr 5076] *** ERROR => MsSRead: NiBuf

  • I can't get my facetime to work on my macbook pro? Is the system overloaded today?

    I can't get my facetime to work on my macbook pro? Is the system overloaded today?

  • Amarok 2.8.0-1 cannot find libquvi.so.7

    So... Title about says it all. For some reason, Amarok cannot find libquvi now. My system is fully up-to-date and libquvi is installed... amarok: error while loading shared libraries: libquvi.so.7: cannot open shared object file: No such file or dire

  • System Crash - Manage Site?

    My processor fried but fortunately no files were lost. I have mounted the drive that held all the necessary data for the site I'm working on in a temporary machine. I still have the folder local_sites, that has all the various folders and html pages