AppleScript: Use EXIF to change "created date"

Here's the deal. I have a bunch of photos that I have imported and exported out of iPhoto which changed their "created date" in the Finder. However, their "capture date" is still the same in the EXIF data. I would like a quick AppleScript application that will update all of the "created dates" to match the "capture date".
I have found all of the AppleScript pieces, I just don't know any AppleScript to put them together.
For example, I found this piece of code that will change a file's "created date", so I know it can be done in AppleScript:
on open files_
display dialog "enter the new creation date in format YYYYMMDDhhmm ex: 200112251730:" default answer "" buttons {"Cancel", "Continue"}
copy the result as list to {the newcreationdate, the button_pressed}
repeat with file_ in files_
tell application "Finder"
set file_ to POSIX path of file_
do shell script "touch -t " & newcreationdate & " " & quoted form of file_
end tell
end repeat
end open
I also have iMagine Photo installed, which can read EXIF data into AppleScript. (Here is their first help page, which is I am sure all you will need.)
I can tell AppleScript to read the EXIF data, and I can tell AppleScript to change a file's "creation date", I just don't know how to translate the information from one to the other. Can anyone help? Thanks a bunch!
Matthew

You may have better luck if you post directly to the Applescript forum. I know just enough Applescript to be dangerous, so when I really want to get something right, I go to the forum and have always gotten wonderful help there:
http://discussions.apple.com/forum.jspa?forumID=724
Very helpful and very clever folks there.
Francine
Francine
Schwieder

Similar Messages

  • IPhoto changing created dates?!?

    For a while, I was using iPhoto only for getting pictures off my camera. Then I'd drag them into a folder and organize them by date. I had a ton of a photos I just got around to organizing and I've noticed that iPhoto has screwed up ALL the created dates on almost every photo. I usually organize them by date, but now I can't because of iPhoto.
    Anyone else notice this? Any way to change it? Is there a program I could use to "reset" all the created dates back to the date the pic was taken? This is driving me nuts!

    The question I have is that if you change the dates in iPhoto does it also change the date on the original?
    Well, it won't change the Original Files...
    Unless you tick the box marked *Modify Original Files*
    Then I guess it might. But will only modify the Exif data, not the File data.
    I have been searching high and low for a decent program that will allow me to batch set the date and time of photos to the EXIF date and time.
    I'm not sure what you mean by this, but you need to move carefully. The FILE data can report quite correctly that a particular file was created today - say when you copied a file. But the Exif data belongs to the PHOTO, and can also, quite correctly report that the photo in the File was created on January 2 1996. Both dates are correct because both dates record the different things.
    Are you trying to get the Finder to report the Exif data?
    Regards
    TD

  • Changing "Created Date" on image and other files.

    I am scanning old family photographs and need to redate all of these photos.  I would like to place them in actual date order, but iphoto doesn't allow that.
    How can I change the "Created Date" on the .jpg files I'm creating on my iMAC?
    Thanks!!
    (And i'm fairly new to the MAC world, "I WAS A PC"..... ;-)

    Hello & a warm welcome to the forums & Macdom!
    There's the terminal method...
    http://danilo.ariadoss.com/howto-change-date-modified-date-created-mac/
    Then a couple of Apps to do it...
    http://www.publicspace.net/ABetterFinderAttributes/
    Mac App Store - File Date Changer 5
    And Automator method...
    http://reviews.cnet.com/8301-13727_7-57411491-263/how-to-batch-rename-files-usin g-automator-in-os-x/

  • Can't change created date

    Hi, so I've uploaded some pictures from my iPhoto to Aperture. A few of the projects think that they were made in the year 2106. As far as I know my camera and computer are from the present day, and having these projects at the top of my list all the time is less insightful to future events than it is annoying.
    I've tried changing the date and time in the Metadata, so now they seem to be from the real date, but the created time is still there when I go back to view all the projects. I'm just wondering if I'm doing something wrong or if there's another way to change that number shown.
    Additional Details:
    - Aperture v. 3.1.2
    - Metadata date reads 2008
    - Do not have access to a time machine
    - Photos imported from iPhoto Library (the problem is in iPhoto as well)

    Hey Tom, you sound like a pretty cool guy, so I've been working on your problem for the last few days. Here's how I got it to work.
    Open the project in question > Select all the photos that need to be changed > Open the Metadata drop down menu > Adjust Date and Time...
    Set the date and Time of the first picture, the rest will be rolled back by the same amount > Click the 'change master files' checkbox > OK
    There will be a progress bar for a few seconds (depending on how many you are changing) Then go back to view the projects and nothing will look different. Here's where it gets wacky!
    Right click the project > delete
    Click the drop down on the trash can in Aperture > right click the project you just deleted > Put Back
    When it's back it should be under the appropriate date. Hope this helps!
    Lots of love, Tom

  • Problem in changing end date of PA-Infotype using HR_INFOTYPE_OPERATIONS .

    Hi All,
    I am trying to change the end date of an active record in an infotype using HR_INFOTYPE_OPERATIONS FM. But am getting an error, 'Infotype does not exist'.
    I am using operation as 'MOD' and passing appropriate parameters as required.
    it would be great if someone can help me out to understand, why could that error be coming?

    Hi Santosh,
    With this FM you cannot change the enddate as enddate is a key field and used to determine the exact record in the database.
    Why don't you use PA30 to change end date of an infotype record?
    Or else delete the row first w. HR_INFOTYPE_OPERATION DEL and insert it again with INS operation and new end date.
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Jan 8, 2010 7:54 AM

  • MBO: Change Header Data

    Hi all,
    We are using the BADI, CHange Header Data (HRHAP00_ACC_HEADER--PART_APPER_ACCESS_2).
    The selection screen button of 'further particpant'(others) is not enabled when the Change header data button is clicked.
    we have created a filter and turn,
    <i>s_header_cust_display-others = c_output_mode_change.</i>
    If there is further participant, the selection screen button got enabled.And if furtherparticipant table is initial, the button is not enabled.
    I want to enable the furtherparticipant button regardless of the table entry.How to do it?
    Points assured for helpful answers.
    Regards,
    Jothi.P

    Hi
    <b>First read the documenatation of this BAPI in SE37 Transaction, by pressing F9 Key.
    Also do a where-used list for this BAPI and then code accordingly.</b>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • I can't change the date on my photos. i click on adjust change and date and it does not give me the earliest date to change

    I can't change the date on my photos in events. I click on adjust date and time of selected photos and the date that I can edit is the oldest photo date and not the earliest. Help?

    iPhoto should be showing you the date of the first photo you selected.
    What do you want to achieve? It should not matter, which photo you select to adjust the time, because all photos will be corrected by the same fixed increment, if you use "Adjust Date and Time".
    If you want to set all photos to the same time, use "Photos > Batch Change > Set Date to" instead.

  • UME using SAP R/3 as Data Source

    Hi,
    We are trying to set User authentication to SAP R/3 system, not load balanced system, on the User Management Configuration values: Client=501, Userid=sapjsf, Password=pwd, sys id=RS1, Group and Message server= blank, Application server= server.company.com, Sys. number=00, Max pool=10, Max wait=300000.
    When testing connection, I get this message:
    (System ID): com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'mshost' missing
    (System ID & System Number): OK
    Is this an error? since our SAP R/3 is not a load balanced system.
    Did we miss any item for the setup, in dataSourceConfiguration_r3.xml? The SAPJSF "communication user" got the right sap role and authorizations.
    Portal version : EP6 SR1
    Regards
    Huzaifah

    Hi,
    If u want to Use The SAP R3 System as Data source u may
    do it from config tool if u got following message.
    WARNING! You are not allowed to select dataSourceConfiguration_r3.xml as active configuration file.
    (For Portal Patch less than SP13 u must download two data source file which is attached with note - 718383
    and upload it to portal which is described in the note)
    the following are the procedure which i apply ,
    Go to System Administration -> System Configuration ->UM  Configuration
    Now Do not change Data source from Here.
    Make sure  your data source is "Database Only"
    (dataSourceConfiguration_database_only.xml)
    Now enter the following value under SAP System Tab.
    Client : - Your sap system client
    User:-  Sap user
    password: - password
    System language:- your system language
    Application server: - Host name or IP of sap system
    System Number : -  SAP instance number
    Maximum Size of Connection Pool : -  As per req.
    Maximum Wait Time in Milliseconds :- 10000
    Now, save the changes and shutdown the portal server.
    Using Config Tool change the data source. Run the following
    <drive:\> usr\sap\<sid>\JC<instance number>\J2EE\configtool\configtool.bat
    (Make sure the portal system is shutdown)
    Under Cluster Data -> Global Server Configuration -> services -> com.sap.security.core.ume.services
    Now find the key: -  ume.persistence.data_source_configuration     
    The default was : - dataSourceConfiguration_database_only.xml
    change the value to :- dataSourceConfiguration_r3.xml     
    click on set and from flie-> apply
    Now restart the portal server ur data source changer to SAP R3 System
    Regards,
    Kaushal

  • Variable Required For Date Difference In Ac Create Date

    Respected All;
    I am stuck in a variable for couple of weeks.
    Please help me to get the difference in dates coming under the Ac Create Date Column for respective Request Id's.
    I want the result in the Delay Column (Variable Required for the result of delay).
    For eg:-
    A
    B
    C
    D
    E
    F
    G
    Request Id
    Ac Create Date
    Act Role Proper Name
    Delay Simplified(Variable Required
    Result In Delay
    Act Activity Name
    1
    000000000560492
    7/9/2014
    Debt Recovery - Archive
    =Ac Create Date C2 - Ac Create Date C1
    5
    Resolved
    2
    7/14/2014
    Call Centre - Back Office
    =Ac Create Date C3 - Ac Create Date C2
    1
    Forward
    3
    7/15/2014
    OWN Shop - AL Rayyan
    =Ac Create Date C4 - Ac Create Date C3
    7
    Resolved
    4
    7/22/2014
    Call Centre - Back Office
    = Ac Create Date C5 - Ac Create Date C4
    0
    Customer Feedback
    5
    7/22/2014
    Call Centre - Back Office
    "NA"
    NA
    Closed FC
    6
    000000000561010
    7/1/2014
    Call Centre - Back Office
    =Ac Create Date C7 - Ac Create Date C6
    1
    Forward
    7
    7/2/2014
    FOLLOW UP TEAM
    =Ac Create Date C8 - Ac Create Date C7
    0
    Resolved
    8
    7/2/2014
    Call Centre - Back Office
    =Ac Create Date C9 - Ac Create Date C8
    1
    Forward
    9
    7/3/2014
    R_RO
    =Ac Create Date C10 - Ac Create Date C9
    12
    Return - Wrong Assignment
    10
    7/15/2014
    Call Centre - Back Office
    =Ac Create Date C11 - Ac Create Date C10
    1
    Forward
    11
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C12 - Ac Create Date C11
    0
    Reassignment
    12
    7/16/2014
    IT CRM & Provisioning
    =Ac Create Date C13 - Ac Create Date C12
    1
    Follow Up
    13
    7/17/2014
    IT CRM & Provisioning
    =Ac Create Date C14 - Ac Create Date C13
    0
    Reassignment
    14
    7/17/2014
    IT_Comptel
    =Ac Create Date C15 - Ac Create Date C14
    3
    Resolved
    15
    7/20/2014
    Call Centre - Back Office
    =Ac Create Date C16 - Ac Create Date C15
    0
    Recategorization
    16
    7/20/2014
    Fiber Call Center-Back Office
    =Ac Create Date C17 - Ac Create Date C16
    0
    Forward
    17
    7/20/2014
    IT CRM & Provisioning
    =Ac Create Date C18 - Ac Create Date C17
    1
    Resolved
    18
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C19 - Ac Create Date C18
    0
    Resolved
    19
    7/21/2014
    Fiber Call Center-Back Office
    =Ac Create Date C20 - Ac Create Date C19
    0
    Customer Feedback
    20
    7/21/2014
    Fiber Call Center-Back Office
    "NA"
    NA
    Closed
    I have used Delay =DaysBetween([Ac Create Date];Previous([Ac Create Date]))
    but however I'm not getting the results required..
    Can someone please help me out with the variable.. For better understanding of the question kindly copy paste the table in excel and check it out, but please please help me out !!!
    Thanks In Advance

    Hi Fahad,
    Try Below-
    Create variable-
    V_NextDate=If RelativeValue([Request Id];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1)=[Request Id] Then ToDate((RelativeValue([Ac Create Date];([Request Id];[Ac Create Date];[Act Activity Name];[Act Role Proper Name]);1));"MM/dd/yyyy")
    In Delays column put below
    =If IsNull(DaysBetween([Ac Create Date];[V_NextDate])) Then "NA" Else DaysBetween([Ac Create Date];[V_NextDate])
    See sceenshot

  • Changing the Date in an Activity of the Interaction Center WinClient

    Hi Experts
    I am working with an activity in the Interaction Center WinClient and i need to change the Date To of the Activity depending on the Reason i choose in the document.
    I found out that in CRMD_SERV_SLA - Maintain Availability and Response Times you can set the an specific time depending on the reason of the activity you are working on, but i don't know how to change the Date To of the Activity when i select a specific reason, which already have the respective duration value defined in the transaction mentioned above.
    I would appreciate the help on this issue and it sure will be rewarded with points.
    Thanks

    Hi Alberto,
    You have to user a header level badi, i.e CRM_ORDERADM_H_BADI
    Here in you can access your activity and can use CRM_ORDER_MAINTAIN to change the date.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Why can't I change the Created Date on a file using Terminal?

    I bought a used Contour helmet camera to take pictures of the kids while they're skiing, and I cannot access the camera itself to change the clock in it (USB port is broken).
    I get videos from it just fine, but every time I remove the battery the date/time on the camera resets to January 2008, so my skiing videos end up someplace completely different from what I expect in iMovie.
    I thought I could change the Created Date with Touch in Terminal, but it only handles the Modified Date.  I know I can purchase File Date Changer 5 from the App Store to do this, but I'd like to know why I can't do it in Terminal.
    Anybody know?  Or know of a different way that I COULD do it in Terminal?

    pessex wrote: Anybody know?  Or know of a different way that I COULD do it in Terminal?
    Don't know about Terminal, but, because you are using 10.9.x and iMovie, try the iMovie method:

  • Copy to Mac file Created Date uses iPhoto Modified not Original Date

    When a photo is edited in iPhoto the 'Extended Photo Info' 'Modified' date field is changed to the now() date and time but the 'Original' date iPhoto remains the same.
    Then when a copy is made of a photo in iPhoto and then 'Paste Item(s)' is made to the Mac desktop all the files dates default to the iPhoto 'Modified' date not the iPhoto 'Original Date'. Then if a sort by the 'Original Date' on the Mac is desired it will not happen unless the Created date file settings is changed for each photo copied to the Mac Desktop.
    How can photos in iPhoto be copied to the Mac Desktop with the 'Original Date' used in the Mac file 'Created' date field?

    when a copy is made of a photo in iPhoto and then 'Paste Item(s)' is made to the Mac desktop all the files dates default to the iPhoto 'Modified' date not the iPhoto 'Original Date'
    Where are you seeing this date?  In the Info window for the file with the Finder?  That's to be expected because those dates are the file dates, not the EXIF photo created and modified dates which can't be view by the Finder.  You will need to use a 3rd party EXIF view like  EXIF Viewer for Mac OS X .
    So don't confuse the EXIF date(s) with the file dates.
    OT

  • How to change the data in a chart using slider bar ?

    hi community,
       i have issue, i created one SDK extension slider bar based on that i want to change the data in chart.
    my requirement is like, i have month and some measures in a chart  i want to set month in a slider bar if am moving slider according to that values should be change in chart.

    You could try the following.
    Pull the month dimension values into an object, where each dimension value is assigned to a "numeric" (air quotes, actually a string) attribute.
    Something along the lines of:
    var myMonths = new Object();
    myMonths["0"] = <month0_key>;
    myMonths["1"] = <month1_key>;
    Then, you assign the range slider a set of numeric values, from 0 to n, where n is the last attribute in myMonths.  When the user changes the slider values and the OnChange is fired, use the numeric values of the current slider positions to get the appropriate range filter values out of myMonths.
    I've not tried this yet, so I don't yet know what pitfalls you'd run into.
    Cheers,
    Dave

  • In IPhoto I changed movie dates after thumb nails were created in IMovie but the new dates are not showing up in IMovie.  Is there someway to refresh the IPhoto event in IMovie?

    Background:  I'm transferring file folders from a Visa laptop via an external hard drive to my IMac.  In the folders are photos and videos from different cameras.  SO I first tried to import to IMovie but it would not recognize any of the files.  So then I imported into IPhoto and both photos and videos were imported and I created events for each folder.  When I first opened IMovie I had to wait for it to create "thumb nails".  Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events.  I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie.    I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie. 
    I'm doing this on three events with about 100 photos and videos.  But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie.   I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.  
    Appreciate any tips or pointers.
    OBTW this is my first question as a first time Apple owner. 

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • Creating data output based on changes to fields

    Hi
    I am using SQL Server 2008 R2 BIDS and need to produce a weekly report whos output only shows changes from the previous weeks report and not sure if this can be done or where to start so any help very much appreciated.
    The scenario is this.
    I have a table where data is uploaded automatically (date created) and there are three main fields that can change. There are over two thousand rows added at each upload.
    Column1 will be the date created
    Column 2 will be a monetary value
    Column 3 will be a reference number
    In the example above with one reference number the first three rows there is no Amount change so each time the report is run this would not be included in the output. In Row 4 there is an amount change so this row should be included in the report output.Row
    5 changes again so the next time the report runs this should show in report output. There is no change to Amount in Row 6 or 7 so these should not show in the next report output.
    If the report was run on 20/03/2015 then there would be no output as no previous changes
    Similarly if the next report was run on 10/04/2015 then it should show the changes on 26/03/2015 and 09/04/2015.
    There could be NULL value in the Amount column and again if at some stage an Amount was uploaded then this would show a change and should be included in the next time the report run.
    Any changes to data from automatic upload then need to manually adjusted and to save a user comparing thousand of rows i was hoping that by creating a report to only highlight changes would be a great time saver.
    I hope i have explained this okay and any thoughts or assitance would be great
    Thanks
    John

    Hi
    I have put the query into SQL Server Management studio to test using the table field names but it doesnt seem to giving me the expected output. This returned over 111392 rows. I have filtered this to just show the reuslts for tency_seq_no 200002 which
    returns 57 rows.
    DECLARE @InputDate Date = '2015-04-09'
    ;WITH cte AS
    SELECT *,ROW_NUMBER() OVER(ORDER BY trans_date)
    -ROW_NUMBER() OVER(PARTITION BY grs_val_trans ORDER BY trans_date) rn
    FROM hratrans
    SELECT MIN(trans_date)as DateCreated, grs_val_trans, tency_seq_no, rn FROM cte
    WHERE rn <> 0 and trans_date < @InputDate and con_sou_cd = 'HB' and tency_seq_no = '200002'
    GROUP BY RN,grs_val_trans,tency_seq_no
    This is in fact showing all weekly transactions over the past year for this particular tency_seq_no.
    However i only want the report to show any changes since the last time the report was run. So in the image shown below for tency_seq_no 200002 if i select 09/04/2015 as the input date i would want two rows in the output showing -62.11 both on the 09/04/2015
    as this was a change from the previous -61.11 recorded on 26/03/2015.
    The image below just shows part of the table hratrans
    Likewise if i had used an input date of 12/03/2015 at -60.71 then there would be no output for this as the previous date of 05/03/2015 was also -60.71.
    Thanks
    John

Maybe you are looking for

  • Payment Run F110

    Good day to all!! I have a problem with payment run.  I have successfully executed payment run but there were no assigned house bank for vendors, can i execute mass change/assignment of bank details in the payment run. thanks..

  • Question on defining taglib in  web.xml

    I am using netbeans to develop a j2ee5 web application. I created a web application project using the wizard. When I defined a <taglib> in the web.xml, it detected an error. cvc-complex-type.2.4.a: Invalid content was found starting with element 'tag

  • Is there a video converting profram better than videora

    my videora ipod converter converts very well except the video and sound are off by a little bit is there anyway to fix that or should i get a new program

  • Artifacts appear on the screen

    We faced the following problems while using Macbook Air 13" 2012, OSX 10.8.2 When starting the computer after sleep mode sometimes the artifacts appear on the screen.  And icons in the upper menu bar disappear. How is it possible to solve these probl

  • Time out (over 600sec)

    Hi all, I have a big problem about performance, the code below give me time out (over 600sec). Are there something worng? What should I do? tell me please Thanks in advance. Tiwa, Regards.   LOOP AT t_vbap.     r_vbap-sign    =  'I'.     r_vbap-optio