Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Reply
Question marked as Best answer
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.

User uploaded file


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

User uploaded file


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.


User uploaded file

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


Regards

Léonie

Posted on Jun 25, 2013 11:01 AM

13 replies
Question marked as Helpful

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.

User uploaded file

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

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.

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.


User uploaded file


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

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?

Question marked as Best answer

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.

User uploaded file


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

User uploaded file


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.


User uploaded file

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


Regards

Léonie

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 dateimageDateof images {itemi of imageSel}

end repeat

end if

return imageSel

end tell

end run

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.

User uploaded file


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

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. 😀

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.