pdreyfus

Q: How can I change the dates on many photos with a fix time of say 20s?

Before it was possible to change the date on many pictures scanned by adddind a fix increlental of time.

How can I now change the dates on many pictures taht I have renumbered to keep the same incremental?

Aperture 3, iOS 6.1.4

Posted on Jun 24, 2013 11:48 PM

Close

Q: How can I change the dates on many photos with a fix time of say 20s?

  • All replies
  • Helpful answers

  • by léonie,Helpful

    léonie léonie Jun 25, 2013 12:12 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jun 25, 2013 12:12 AM in response to pdreyfus

    It is still possible just like always.

    • Select the images in the browser and use the command "Metadata > Adjust Date and Time" from the main menu bar.

    Screen Shot 2013-06-25 at 08.57.42.PNG

    This will shift all dates by the same offset.

     

    Or are you asking about the time adjustment in increments like it has been done in iPhoto previously?

    Have assigned new dates and times to a sequence of images, with a fixed interval, for example fixed steps of one hour?

    I wrote a little AppleScript wrapped as Automator workflow for this - have a look at this page and download it, if you want to try it on a small test library:

     

    Adjust Date and Time in fixed increments

     

    Regards

    Léonie

  • by pdreyfus,

    pdreyfus pdreyfus Jun 25, 2013 1:01 AM in response to léonie
    Level 1 (0 points)
    Jun 25, 2013 1:01 AM in response to léonie

    Thank you. Yes my problem is that I scanned slides and I wan to assign a date and time to a sequence of images with a fiwed interval (Max 30sec.)

    I have never used AppleScripts so I am not sure I shall be abele to run it.

    But I will try.

    Thak you anyhow.

     

    Regards

  • by léonie,

    léonie léonie Jun 25, 2013 2:23 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jun 25, 2013 2:23 AM in response to pdreyfus

    I have never used AppleScripts so I am not sure I shall be abele to run it.

    But I will try.

    Thak you anyhow.

    That is why I wrapped the script as an Automator service. If you install the service in your user library in the Services folder, you can call it directly from Aperture's Services menu. Double-clicking the Automator workflow should install it automatically.

     

    But if you never have used AppleScript, I would not install a script from some unknown site, unless you can find a trusted person, who will check the script for you to see if it is harmless.

  • by pdreyfus,

    pdreyfus pdreyfus Jun 25, 2013 7:45 AM in response to léonie
    Level 1 (0 points)
    Jun 25, 2013 7:45 AM in response to léonie

    I am sorry but I don't see how to run the application. When I double Click it says taht I am not allowed, for security reasons, to run an application from an unknown source (all this in french as my software is in french)

  • by léonie,

    léonie léonie Jun 25, 2013 8:07 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jun 25, 2013 8:07 AM in response to pdreyfus

    When I double Click it says taht I am not allowed, for security reasons, to run an application from an unknown source (all this in french as my software is in french)

    That is for security reasons. By default, Mt. Lion will not let you run any applications, that have not been signed with a certificate from trusted Apple developers. If you want to be able to run any application, you will have to disable that security check. You may want to try that in a different user account, or not at all - it requires a lot of trust in downloaded software.

     

    Screen Shot 2013-06-25 at 16.58.51.PNG

     

    Instead of using the downloaded workflow and disabling your security settings in the System Preferences, try could try to create recreate the Automator workflow and the embedded script.

     

    Reagrds

    Léonie

  • by pdreyfus,

    pdreyfus pdreyfus Jun 25, 2013 9:05 AM in response to léonie
    Level 1 (0 points)
    Jun 25, 2013 9:05 AM in response to léonie

    So I followed your last advise. I copied your script and recreatere the AUtomamator workflow. I changed hours for minutes and it also worked wehn I  tried it.

    (Can I reduce the time to sya 30 seconds?) I cannot find "seconds"

     

    But I still don't understand how to copy it in the User library in the "Services" folder? I don't see it in Aprture.

    I installed it on my desk and it goes to Aperture when I click on it but not frome the Services Menu?

  • by léonie,Solvedanswer

    léonie léonie Jun 25, 2013 11:01 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jun 25, 2013 11:01 AM in response to pdreyfus

    I copied your script and recreatere the AUtomamator workflow.

    When you run the workflow, it should install automatically in the "Services" folder in your User library. Or did you not select the Automator template "Service"?

     

    To install it manually, open your User Library. This is hidden in Lion and Mt. Lion. To reveal it, use the Finder's "Go" menu (Aller). Select "Aller" in the Finder's main menu bar and hold down the alt/option key, until you see the "Library" (Bibliothèque) in the drop-down menu. Double click it to open a Finder window.

    Screen Shot 2013-06-25 at 7.24.29 PM.PNG

     

    Navigate to the Folder "Services"  and copy your Service to this folder, if it is not already there.

    Screen Shot 2013-06-25 at 7.28.50 PM.PNG

     

    As a last step, enable this service.

     

    • Open the System Preferences  Keyboard tab (Clavier) and click Raccourcis clavier.
    • In the left column select "Services".
    • In the right column select "AdjustTImeInIncrements" and enable the Checkmark.
    • Optionally you can click the field "aucun" to the right, to assign a Keyboard shortcut.

     

    Log off and on again, relaunch Aperture. Now the service should appear in Aperture's Services menu:      Aperture > Services. 

    The service should be available, when you select  images in Aperture.

     

    Screen Shot 2013-06-25 at 7.31.20 PM.PNG

    I'll have to think a bit about the "seconds".

     

    Regards

    Léonie

  • by pdreyfus,Helpful

    pdreyfus pdreyfus Jun 25, 2013 11:11 AM in response to léonie
    Level 1 (0 points)
    Jun 25, 2013 11:11 AM in response to léonie

    It worked.

    You are great.

  • by léonie,

    léonie léonie Jun 25, 2013 11:56 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jun 25, 2013 11:56 AM in response to pdreyfus

    The seconds:

    I just remembered - the time increment is set in Apple Script in seconds -  the variable  "minutes" is just a name for the value "60" and "hours" for "3600". Since "seconds" would have the value "1", there is no predefined constant "seconds".

     

    If you want an increment of 30 seconds, simply write

    set timeIncrement to 30

     


    For example

    on run {input, parameters}

      (* copyright leonieDF *)

              set timeIncrement to (1 * hours) + (2 * minutes) + 30

      (* select at least 2 images in Aperture *)

              tell application "Aperture"

      activate

                        set imageSel to (get selection)

                        if imageSel is {} then

                                  error "Please select an image."

                        else

                                  tell (item 1 of imageSel)

                                            set imageDate to value of EXIF tag "ImageDate"

      --set imageDate to get the value of EXIF tag "ImageDate"

                                  end tell

     

                                  repeat with i from 2 to count of imageSel

                                            set imageDate to imageDate + timeIncrement

      adjust image date imageDate of images {item i of imageSel}

                                  end repeat

                        end if

                        return imageSel

              end tell

    end run

  • by léonie,

    léonie léonie Jul 3, 2013 12:50 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jul 3, 2013 12:50 AM in response to pdreyfus

    Just one more thought:

     

    I never thought to ask, but if you have iPhoto, you can batch change the dates and times in iPhoto like this: The "Modify Original file" works well, at least in my version 9.4.3 when I tried again just now.

    Screen Shot 2013-07-03 at 09.32.31MESZ.PNG

     

    With Aperture 3.4.5 and iPhoto 9.4.3 you can directly open your Aperture library in iPhoto, or with a previous version you could at least  use iPhoto to do the batch change.

     

    When I wrote the Automator service for Aperture, it was not yet possible to open Aperture Libraries in iPhoto.

     

    Regards

    Léonie

  • by pdreyfus,

    pdreyfus pdreyfus Jul 3, 2013 1:26 AM in response to léonie
    Level 1 (0 points)
    Jul 3, 2013 1:26 AM in response to léonie

    Leonie

     

    Thank you for your constant help.

    I have been using your Automator Service and it worked fine also with the seconds.

     

    I shall have a look at the iPhoto function too. Does it mean that iphoto is becoming beter then Aperture and that Apple might drop Aperture in the future?

     

    Regards

     

    Pierre

  • by léonie,

    léonie léonie Jul 3, 2013 1:37 AM in response to pdreyfus
    Level 10 (105,690 points)
    iLife
    Jul 3, 2013 1:37 AM in response to pdreyfus

    Does it mean that iphoto is becoming better then Aperture and that Apple might drop Aperture in the future?

    I don't think so. This feature has been in iPhoto since day one.  When I switched from iPhoto to Aperture two years ago, it was not yet possible to open iPhoto libraries in Aperture, and so I wrote my script, because I wanted to have this feature back (and to practice writing Apple Scripts). I just recently rediscovered it in iPhoto, when frank Caggiano pointed it out. Since the introduction of the unified iPhoto and Aperture library format I am using iPhoto more often again. Aperture has the better support for time zones, but I wish, Apple would bring iPhoto's batch change of dates and times to Aperture. 

  • by pdreyfus,

    pdreyfus pdreyfus Jul 3, 2013 1:48 AM in response to léonie
    Level 1 (0 points)
    Jul 3, 2013 1:48 AM in response to léonie

    Thank you