News:

If this site goes down it is because of the crappy DreamHost web hosting: They will disable your "unlimited traffic" web server if a single bot hammers the site with a moderate load.  If necessary, an alternate ExifTool forum page is available at https://sourceforge.net/p/exiftool/discussion/

Main Menu

How to increment file creation date from file to file

Started by Arni, February 21, 2014, 10:38:49 AM

Previous topic - Next topic

NT4Boy

#15
Sir,

I think that by using the commands I did, which are pointing  at a directory, then I think you are saying all files ought to be processed if writable.
Looking at the .mov files, then the file date is actually the same as those jpgs updated by exiftool, and dropping the .mov files on exiftool(-k) I can see that to my surprise the DateTime Original and Create exist  in the series put in by my command, so I think now that they were processed.
Its just the IPAD, has other ideas about where they belong.

Ok, the answer is that to get the .MOV files to correctly mix in with the the jpegs, I read the date and time of day of the AllDates meta in the jpeg numerically nearest the .mov and then wrote the appropiate date and time stamps on the file using a Windows version of 'touch'.
filetouch /W /A /C /D 02-21-2014 /T 12:09:00 G:\DCIM\101DICAM\DSCN1227.mov
Thanks all
One important thing being to write to the SD card direct that will be used by the IPAD for import as if you copy a file onto the SD card after 'touching' it, the relevant date changes again...

classicbs

#16
Hi there, replying here as I don't want people to reply saying "search the forums"  Should I start a new topic??

I've been trying to do this on a mac using the following commands as explained here: http://photo.stackexchange.com/questions/60342/how-can-i-incrementally-date-photos

exiftool -datetimeoriginal="2015:02:22 00:00:00" DIR
And then increment the time on each

exiftool '-datetimeoriginal+<0:0:${filesequence}0' DIR

it seems to have worked on my selection of 318 photos.  But for some reason the first 33 photos are just all over the place (in terms of the time of day they were taken) then from 33 onwards they go up in 1 minute increments as expected.  The first 33 are a s follows

1- 12:00 PM  (as I changed them all to)
2- 13.51
3- 15.42
4- 16.12
5- 16.34
6- 16.45
7- 16.56

blah blah blah

31- 15.54
32- 16.04
33- 16.05
34- 16.06
35- 16.07 etc etc

Can anyone work out whats going on with my set up?  Please use layman terms as I'm not a programmer and don't understand much of this.  There seems to be no pattern

Many thanks,

James


Phil Harvey

Hi James,

Adding to this topic is fine.

I tried your command and it adjusted the DateTimeOriginal values by increments of 10 seconds as expected.

I don't understand the times you list because you don't show the seconds and I expect increments of 10 seconds.  So I assume the command you ran is not the one you posted.  Also, are you sure that the command processed all of the files you listed?  Alternatively, could there be other files not listed that the command also processed?  (Perhaps you used -r and aren't looking at the subdirectories that were processed?)  Either case could cause the observed problem.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

classicbs

Thanks Phil,

These are the two commands I used:

exiftool -datetimeoriginal="2004:09:01 12:00:00" /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW

exiftool '-datetimeoriginal+<0:$filesequence' /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW

And here is what it says in Terminal

Last login: Mon Nov  9 12:21:28 on ttys004
Jamess-MacBook-Pro:~ jamesbayliss-smith$ exiftool -datetimeoriginal="2004:09:01 12:00:00" /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW
    1 directories scanned
  318 image files updated
Jamess-MacBook-Pro:~ jamesbayliss-smith$ exiftool '-datetimeoriginal+<0:$filesequence' /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW
    1 directories scanned
  317 image files updated
    1 image files unchanged
Jamess-MacBook-Pro:~ jamesbayliss-smith$

QuoteAdding to this topic is fine.

Cool I wasn't sure if it was still being monitored

QuoteI tried your command and it adjusted the DateTimeOriginal values by increments of 10 seconds as expected.

I just tried running it again and I got the same result.  I actually described it innacuratly above.  They adjusted them by 1 minute each time exept for the first 33 Photos.  Strange?  Where in the formula does it specify the length each one is adjusted by?

QuoteI don't understand the times you list because you don't show the seconds and I expect increments of 10 seconds.

It did 1 minute increments (except first 33) all the seconds values on the whole job were 00

QuoteAlso, are you sure that the command processed all of the files you listed?  Alternatively, could there be other files not listed that the command also processed?  (Perhaps you used -r and aren't looking at the subdirectories that were processed?)  Either case could cause the observed problem.

It did prices them all then created new files.  I deleted the originals (I have them elsewhere) and checked the EXIFdat using the info box in the preview app (mac)

I'm stumped.  Let me know if you need more information and I'll try post it./  Thanks

Phil Harvey

I suggest trying this:

exiftool -p '0:$filesequence' /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW

And post the output here.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

classicbs

#20
Hi Phil, is this what you mean?

Jamess-MacBook-Pro:~ jamesbayliss-smith$ exiftool -p '0:$filesequence' /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW
0:0
0:1
0:2
0:3
0:4
0:5
0:6
0:7
0:8
0:9
0:10
0:11
0:12
0:13
0:14
0:15
0:16
0:17
0:18
0:19
0:20
0:21
0:22
0:23
0:24
0:25
0:26
0:27
0:28
0:29
0:30
0:31
0:32
0:33
0:34
0:35
0:36
0:37
0:38
0:39
0:40
0:41
0:42
0:43
0:44
0:45
0:46
0:47
0:48
0:49
0:50
0:51
0:52
0:53
0:54
0:55
0:56
0:57
0:58
0:59
0:60
0:61
0:62
0:63
0:64
0:65
0:66
0:67
0:68
0:69
0:70
0:71
0:72
0:73
0:74
0:75
0:76
0:77
0:78
0:79
0:80
0:81
0:82
0:83
0:84
0:85
0:86
0:87
0:88
0:89
0:90
0:91
0:92
0:93
0:94
0:95
0:96
0:97
0:98
0:99
0:100
0:101
0:102
0:103
0:104
0:105
0:106
0:107
0:108
0:109
0:110
0:111
0:112
0:113
0:114
0:115
0:116
0:117
0:118
0:119
0:120
0:121
0:122
0:123
0:124
0:125
0:126
0:127
0:128
0:129
0:130
0:131
0:132
0:133
0:134
0:135
0:136
0:137
0:138
0:139
0:140
0:141
0:142
0:143
0:144
0:145
0:146
0:147
0:148
0:149
0:150
0:151
0:152
0:153
0:154
0:155
0:156
0:157
0:158
0:159
0:160
0:161
0:162
0:163
0:164
0:165
0:166
0:167
0:168
0:169
0:170
0:171
0:172
0:173
0:174
0:175
0:176
0:177
0:178
0:179
0:180
0:181
0:182
0:183
0:184
0:185
0:186
0:187
0:188
0:189
0:190
0:191
0:192
0:193
0:194
0:195
0:196
0:197
0:198
0:199
0:200
0:201
0:202
0:203
0:204
0:205
0:206
0:207
0:208
0:209
0:210
0:211
0:212
0:213
0:214
0:215
0:216
0:217
0:218
0:219
0:220
0:221
0:222
0:223
0:224
0:225
0:226
0:227
0:228
0:229
0:230
0:231
0:232
0:233
0:234
0:235
0:236
0:237
0:238
0:239
0:240
0:241
0:242
0:243
0:244
0:245
0:246
0:247
0:248
0:249
0:250
0:251
0:252
0:253
0:254
0:255
0:256
0:257
0:258
0:259
0:260
0:261
0:262
0:263
0:264
0:265
0:266
0:267
0:268
0:269
0:270
0:271
0:272
0:273
0:274
0:275
0:276
0:277
0:278
0:279
0:280
0:281
0:282
0:283
0:284
0:285
0:286
0:287
0:288
0:289
0:290
0:291
0:292
0:293
0:294
0:295
0:296
0:297
0:298
0:299
0:300
0:301
0:302
0:303
0:304
0:305
0:306
0:307
0:308
0:309
0:310
0:311
0:312
0:313
0:314
0:315
0:316
0:317
    1 directories scanned
  318 image files read
Jamess-MacBook-Pro:~ jamesbayliss-smith$


PH Edit: Formatted output as a code block

Phil Harvey

Hi James,

Yes, that's what I meant.  These are the time shift values you are applying.  I should have used -p '0:$filesequence $filename' to see what files they are being applied to, but it looks like the shifts are correct.

Using this output you should be able to reproduce the processing steps for a single file and figure out what is happening.  Again, when I try this on my system here the dates are shifted as expected, so this is a bit of a mystery that you will have to investigate at your end.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

classicbs

#22
Okay thanks it's to do with the way the files are numbered I need to start with 001.  Thanks for you help

Jamess-MacBook-Pro:~ jamesbayliss-smith$ exiftool -p '0:$filesequence $filename' /Users/jamesbayliss-smith/Desktop/Nepal\ Tibet\ 2004\ NEW
0:0 Nepal-Tibet-2004 - 1.jpg
0:1 Nepal-Tibet-2004 - 10.jpg
0:2 Nepal-Tibet-2004 - 100.jpg
0:3 Nepal-Tibet-2004 - 101.jpg
0:4 Nepal-Tibet-2004 - 102.jpg
0:5 Nepal-Tibet-2004 - 103.jpg
0:6 Nepal-Tibet-2004 - 104.jpg
0:7 Nepal-Tibet-2004 - 105.jpg
0:8 Nepal-Tibet-2004 - 106.jpg
0:9 Nepal-Tibet-2004 - 107.jpg
0:10 Nepal-Tibet-2004 - 108.jpg
0:11 Nepal-Tibet-2004 - 109.jpg
0:12 Nepal-Tibet-2004 - 11.jpg
0:13 Nepal-Tibet-2004 - 110.jpg
0:14 Nepal-Tibet-2004 - 111.jpg
0:15 Nepal-Tibet-2004 - 112.jpg
0:16 Nepal-Tibet-2004 - 113.jpg
0:17 Nepal-Tibet-2004 - 114.jpg
0:18 Nepal-Tibet-2004 - 115.jpg
0:19 Nepal-Tibet-2004 - 116.jpg
0:20 Nepal-Tibet-2004 - 117.jpg
0:21 Nepal-Tibet-2004 - 118.jpg
0:22 Nepal-Tibet-2004 - 119.jpg
0:23 Nepal-Tibet-2004 - 12.jpg
0:24 Nepal-Tibet-2004 - 120.jpg
0:25 Nepal-Tibet-2004 - 121.jpg
0:26 Nepal-Tibet-2004 - 122.jpg
0:27 Nepal-Tibet-2004 - 123.jpg
0:28 Nepal-Tibet-2004 - 124.jpg
0:29 Nepal-Tibet-2004 - 125.jpg
0:30 Nepal-Tibet-2004 - 126.jpg
0:31 Nepal-Tibet-2004 - 127.jpg
0:32 Nepal-Tibet-2004 - 128.jpg
0:33 Nepal-Tibet-2004 - 129.jpg
0:34 Nepal-Tibet-2004 - 13.jpg
0:35 Nepal-Tibet-2004 - 130.jpg
0:36 Nepal-Tibet-2004 - 131.jpg
0:37 Nepal-Tibet-2004 - 132.jpg
0:38 Nepal-Tibet-2004 - 133.jpg
0:39 Nepal-Tibet-2004 - 134.jpg
0:40 Nepal-Tibet-2004 - 135.jpg
0:41 Nepal-Tibet-2004 - 136.jpg
0:42 Nepal-Tibet-2004 - 137.jpg
0:43 Nepal-Tibet-2004 - 138.jpg
0:44 Nepal-Tibet-2004 - 139.jpg
0:45 Nepal-Tibet-2004 - 14.jpg
0:46 Nepal-Tibet-2004 - 140.jpg
0:47 Nepal-Tibet-2004 - 141.jpg
0:48 Nepal-Tibet-2004 - 142.jpg
0:49 Nepal-Tibet-2004 - 143.jpg
0:50 Nepal-Tibet-2004 - 144.jpg
0:51 Nepal-Tibet-2004 - 145.jpg
0:52 Nepal-Tibet-2004 - 146.jpg
0:53 Nepal-Tibet-2004 - 147.jpg
0:54 Nepal-Tibet-2004 - 148.jpg
0:55 Nepal-Tibet-2004 - 149.jpg
0:56 Nepal-Tibet-2004 - 15.jpg
0:57 Nepal-Tibet-2004 - 150.jpg
0:58 Nepal-Tibet-2004 - 151.jpg
0:59 Nepal-Tibet-2004 - 152.jpg
0:60 Nepal-Tibet-2004 - 153.jpg
0:61 Nepal-Tibet-2004 - 154.jpg
0:62 Nepal-Tibet-2004 - 155.jpg
0:63 Nepal-Tibet-2004 - 156.jpg
0:64 Nepal-Tibet-2004 - 157.jpg
0:65 Nepal-Tibet-2004 - 158.jpg
0:66 Nepal-Tibet-2004 - 159.jpg
0:67 Nepal-Tibet-2004 - 16.jpg
0:68 Nepal-Tibet-2004 - 160.jpg
0:69 Nepal-Tibet-2004 - 161.jpg
0:70 Nepal-Tibet-2004 - 162.jpg
0:71 Nepal-Tibet-2004 - 163.jpg
0:72 Nepal-Tibet-2004 - 164.jpg
0:73 Nepal-Tibet-2004 - 165.jpg
0:74 Nepal-Tibet-2004 - 166.jpg
0:75 Nepal-Tibet-2004 - 167.jpg
0:76 Nepal-Tibet-2004 - 168.jpg
0:77 Nepal-Tibet-2004 - 169.jpg
0:78 Nepal-Tibet-2004 - 17.jpg
0:79 Nepal-Tibet-2004 - 170.jpg
0:80 Nepal-Tibet-2004 - 171.jpg
0:81 Nepal-Tibet-2004 - 172.jpg
0:82 Nepal-Tibet-2004 - 173.jpg
0:83 Nepal-Tibet-2004 - 174.jpg
0:84 Nepal-Tibet-2004 - 175.jpg
0:85 Nepal-Tibet-2004 - 176.jpg
0:86 Nepal-Tibet-2004 - 177.jpg
0:87 Nepal-Tibet-2004 - 178.jpg
0:88 Nepal-Tibet-2004 - 179.jpg
0:89 Nepal-Tibet-2004 - 18.jpg
0:90 Nepal-Tibet-2004 - 180.jpg
0:91 Nepal-Tibet-2004 - 181.jpg
0:92 Nepal-Tibet-2004 - 182.jpg
0:93 Nepal-Tibet-2004 - 183.jpg
0:94 Nepal-Tibet-2004 - 184.jpg
0:95 Nepal-Tibet-2004 - 185.jpg
0:96 Nepal-Tibet-2004 - 186.jpg
0:97 Nepal-Tibet-2004 - 187.jpg
0:98 Nepal-Tibet-2004 - 188.jpg
0:99 Nepal-Tibet-2004 - 189.jpg
0:100 Nepal-Tibet-2004 - 19.jpg
0:101 Nepal-Tibet-2004 - 190.jpg
0:102 Nepal-Tibet-2004 - 191.jpg
0:103 Nepal-Tibet-2004 - 192.jpg
0:104 Nepal-Tibet-2004 - 193.jpg
0:105 Nepal-Tibet-2004 - 194.jpg
0:106 Nepal-Tibet-2004 - 195.jpg
0:107 Nepal-Tibet-2004 - 196.jpg
0:108 Nepal-Tibet-2004 - 197.jpg
0:109 Nepal-Tibet-2004 - 198.jpg
0:110 Nepal-Tibet-2004 - 199.jpg
0:111 Nepal-Tibet-2004 - 2.jpg
0:112 Nepal-Tibet-2004 - 20.jpg
0:113 Nepal-Tibet-2004 - 200.jpg
0:114 Nepal-Tibet-2004 - 201.jpg
0:115 Nepal-Tibet-2004 - 202.jpg
0:116 Nepal-Tibet-2004 - 203.jpg
0:117 Nepal-Tibet-2004 - 204.jpg
0:118 Nepal-Tibet-2004 - 205.jpg
0:119 Nepal-Tibet-2004 - 206.jpg
0:120 Nepal-Tibet-2004 - 207.jpg
0:121 Nepal-Tibet-2004 - 208.jpg
0:122 Nepal-Tibet-2004 - 209.jpg
0:123 Nepal-Tibet-2004 - 21.jpg
0:124 Nepal-Tibet-2004 - 210.jpg
0:125 Nepal-Tibet-2004 - 211.jpg
0:126 Nepal-Tibet-2004 - 212.jpg
0:127 Nepal-Tibet-2004 - 213.jpg
0:128 Nepal-Tibet-2004 - 214.jpg
0:129 Nepal-Tibet-2004 - 215.jpg
0:130 Nepal-Tibet-2004 - 216.jpg
0:131 Nepal-Tibet-2004 - 217.jpg
0:132 Nepal-Tibet-2004 - 218.jpg
0:133 Nepal-Tibet-2004 - 219.jpg
0:134 Nepal-Tibet-2004 - 22.jpg
0:135 Nepal-Tibet-2004 - 220.jpg
0:136 Nepal-Tibet-2004 - 221.jpg
0:137 Nepal-Tibet-2004 - 222.jpg
0:138 Nepal-Tibet-2004 - 223.jpg
0:139 Nepal-Tibet-2004 - 224.jpg
0:140 Nepal-Tibet-2004 - 225.jpg
0:141 Nepal-Tibet-2004 - 226.jpg
0:142 Nepal-Tibet-2004 - 227.jpg
0:143 Nepal-Tibet-2004 - 228.jpg
0:144 Nepal-Tibet-2004 - 229.jpg
0:145 Nepal-Tibet-2004 - 23.jpg
0:146 Nepal-Tibet-2004 - 230.jpg
0:147 Nepal-Tibet-2004 - 231.jpg
0:148 Nepal-Tibet-2004 - 232.jpg
0:149 Nepal-Tibet-2004 - 233.jpg
0:150 Nepal-Tibet-2004 - 234.jpg
0:151 Nepal-Tibet-2004 - 235.jpg
0:152 Nepal-Tibet-2004 - 236.jpg
0:153 Nepal-Tibet-2004 - 237.jpg
0:154 Nepal-Tibet-2004 - 238.jpg
0:155 Nepal-Tibet-2004 - 239.jpg
0:156 Nepal-Tibet-2004 - 24.jpg
0:157 Nepal-Tibet-2004 - 240.jpg
0:158 Nepal-Tibet-2004 - 241.jpg
0:159 Nepal-Tibet-2004 - 242.jpg
0:160 Nepal-Tibet-2004 - 243.jpg
0:161 Nepal-Tibet-2004 - 244.jpg
0:162 Nepal-Tibet-2004 - 245.jpg
0:163 Nepal-Tibet-2004 - 246.jpg
0:164 Nepal-Tibet-2004 - 247.jpg
0:165 Nepal-Tibet-2004 - 248.jpg
0:166 Nepal-Tibet-2004 - 249.jpg
0:167 Nepal-Tibet-2004 - 25.jpg
0:168 Nepal-Tibet-2004 - 250.jpg
0:169 Nepal-Tibet-2004 - 251.jpg
0:170 Nepal-Tibet-2004 - 252.jpg
0:171 Nepal-Tibet-2004 - 253.jpg
0:172 Nepal-Tibet-2004 - 254.jpg
0:173 Nepal-Tibet-2004 - 255.jpg
0:174 Nepal-Tibet-2004 - 256.jpg
0:175 Nepal-Tibet-2004 - 257.jpg
0:176 Nepal-Tibet-2004 - 258.jpg
0:177 Nepal-Tibet-2004 - 259.jpg
0:178 Nepal-Tibet-2004 - 26.jpg
0:179 Nepal-Tibet-2004 - 260.jpg
0:180 Nepal-Tibet-2004 - 261.jpg
0:181 Nepal-Tibet-2004 - 262.jpg
0:182 Nepal-Tibet-2004 - 263.jpg
0:183 Nepal-Tibet-2004 - 264.jpg
0:184 Nepal-Tibet-2004 - 265.jpg
0:185 Nepal-Tibet-2004 - 266.jpg
0:186 Nepal-Tibet-2004 - 267.jpg
0:187 Nepal-Tibet-2004 - 268.jpg
0:188 Nepal-Tibet-2004 - 269.jpg
0:189 Nepal-Tibet-2004 - 27.jpg
0:190 Nepal-Tibet-2004 - 270.jpg
0:191 Nepal-Tibet-2004 - 271.jpg
0:192 Nepal-Tibet-2004 - 272.jpg
0:193 Nepal-Tibet-2004 - 273.jpg
0:194 Nepal-Tibet-2004 - 274.jpg
0:195 Nepal-Tibet-2004 - 275.jpg
0:196 Nepal-Tibet-2004 - 276.jpg
0:197 Nepal-Tibet-2004 - 277.jpg
0:198 Nepal-Tibet-2004 - 278.jpg
0:199 Nepal-Tibet-2004 - 279.jpg
0:200 Nepal-Tibet-2004 - 28.jpg
0:201 Nepal-Tibet-2004 - 280.jpg
0:202 Nepal-Tibet-2004 - 281.jpg
0:203 Nepal-Tibet-2004 - 282.jpg
0:204 Nepal-Tibet-2004 - 283.jpg
0:205 Nepal-Tibet-2004 - 284.jpg
0:206 Nepal-Tibet-2004 - 285.jpg
0:207 Nepal-Tibet-2004 - 286.jpg
0:208 Nepal-Tibet-2004 - 287.jpg
0:209 Nepal-Tibet-2004 - 288.jpg
0:210 Nepal-Tibet-2004 - 289.jpg
0:211 Nepal-Tibet-2004 - 29.jpg
0:212 Nepal-Tibet-2004 - 290.jpg
0:213 Nepal-Tibet-2004 - 291.jpg
0:214 Nepal-Tibet-2004 - 292.jpg
0:215 Nepal-Tibet-2004 - 293.jpg
0:216 Nepal-Tibet-2004 - 294.jpg
0:217 Nepal-Tibet-2004 - 295.jpg
0:218 Nepal-Tibet-2004 - 296.jpg
0:219 Nepal-Tibet-2004 - 297.jpg
0:220 Nepal-Tibet-2004 - 298.jpg
0:221 Nepal-Tibet-2004 - 299.jpg
0:222 Nepal-Tibet-2004 - 3.jpg
0:223 Nepal-Tibet-2004 - 30.jpg
0:224 Nepal-Tibet-2004 - 300.jpg
0:225 Nepal-Tibet-2004 - 301.jpg
0:226 Nepal-Tibet-2004 - 302.jpg
0:227 Nepal-Tibet-2004 - 303.jpg
0:228 Nepal-Tibet-2004 - 304.jpg
0:229 Nepal-Tibet-2004 - 305.jpg
0:230 Nepal-Tibet-2004 - 306.jpg
0:231 Nepal-Tibet-2004 - 307.jpg
0:232 Nepal-Tibet-2004 - 308.jpg
0:233 Nepal-Tibet-2004 - 309.jpg
0:234 Nepal-Tibet-2004 - 31.jpg
0:235 Nepal-Tibet-2004 - 310.jpg
0:236 Nepal-Tibet-2004 - 311.jpg
0:237 Nepal-Tibet-2004 - 312.jpg
0:238 Nepal-Tibet-2004 - 313.jpg
0:239 Nepal-Tibet-2004 - 314.jpg
0:240 Nepal-Tibet-2004 - 315.jpg
0:241 Nepal-Tibet-2004 - 316.jpg
0:242 Nepal-Tibet-2004 - 317.jpg
0:243 Nepal-Tibet-2004 - 318.jpg
0:244 Nepal-Tibet-2004 - 32.jpg
0:245 Nepal-Tibet-2004 - 33.jpg
0:246 Nepal-Tibet-2004 - 34.jpg
0:247 Nepal-Tibet-2004 - 35.jpg
0:248 Nepal-Tibet-2004 - 36.jpg
0:249 Nepal-Tibet-2004 - 37.jpg
0:250 Nepal-Tibet-2004 - 38.jpg
0:251 Nepal-Tibet-2004 - 39.jpg
0:252 Nepal-Tibet-2004 - 4.jpg
0:253 Nepal-Tibet-2004 - 40.jpg
0:254 Nepal-Tibet-2004 - 41.jpg
0:255 Nepal-Tibet-2004 - 42.jpg
0:256 Nepal-Tibet-2004 - 43.jpg
0:257 Nepal-Tibet-2004 - 44.jpg
0:258 Nepal-Tibet-2004 - 45.jpg
0:259 Nepal-Tibet-2004 - 46.jpg
0:260 Nepal-Tibet-2004 - 47.jpg
0:261 Nepal-Tibet-2004 - 48.jpg
0:262 Nepal-Tibet-2004 - 49.jpg
0:263 Nepal-Tibet-2004 - 5.jpg
0:264 Nepal-Tibet-2004 - 50.jpg
0:265 Nepal-Tibet-2004 - 51.jpg
0:266 Nepal-Tibet-2004 - 52.jpg
0:267 Nepal-Tibet-2004 - 53.jpg
0:268 Nepal-Tibet-2004 - 54.jpg
0:269 Nepal-Tibet-2004 - 55.jpg
0:270 Nepal-Tibet-2004 - 56.jpg
0:271 Nepal-Tibet-2004 - 57.jpg
0:272 Nepal-Tibet-2004 - 58.jpg
0:273 Nepal-Tibet-2004 - 59.jpg
0:274 Nepal-Tibet-2004 - 6.jpg
0:275 Nepal-Tibet-2004 - 60.jpg
0:276 Nepal-Tibet-2004 - 61.jpg
0:277 Nepal-Tibet-2004 - 62.jpg
0:278 Nepal-Tibet-2004 - 63.jpg
0:279 Nepal-Tibet-2004 - 64.jpg
0:280 Nepal-Tibet-2004 - 65.jpg
0:281 Nepal-Tibet-2004 - 66.jpg
0:282 Nepal-Tibet-2004 - 67.jpg
0:283 Nepal-Tibet-2004 - 68.jpg
0:284 Nepal-Tibet-2004 - 69.jpg
0:285 Nepal-Tibet-2004 - 7.jpg
0:286 Nepal-Tibet-2004 - 70.jpg
0:287 Nepal-Tibet-2004 - 71.jpg
0:288 Nepal-Tibet-2004 - 72.jpg
0:289 Nepal-Tibet-2004 - 73.jpg
0:290 Nepal-Tibet-2004 - 74.jpg
0:291 Nepal-Tibet-2004 - 75.jpg
0:292 Nepal-Tibet-2004 - 76.jpg
0:293 Nepal-Tibet-2004 - 77.jpg
0:294 Nepal-Tibet-2004 - 78.jpg
0:295 Nepal-Tibet-2004 - 79.jpg
0:296 Nepal-Tibet-2004 - 8.jpg
0:297 Nepal-Tibet-2004 - 80.jpg
0:298 Nepal-Tibet-2004 - 81.jpg
0:299 Nepal-Tibet-2004 - 82.jpg
0:300 Nepal-Tibet-2004 - 83.jpg
0:301 Nepal-Tibet-2004 - 84.jpg
0:302 Nepal-Tibet-2004 - 85.jpg
0:303 Nepal-Tibet-2004 - 86.jpg
0:304 Nepal-Tibet-2004 - 87.jpg
0:305 Nepal-Tibet-2004 - 88.jpg
0:306 Nepal-Tibet-2004 - 89.jpg
0:307 Nepal-Tibet-2004 - 9.jpg
0:308 Nepal-Tibet-2004 - 90.jpg
0:309 Nepal-Tibet-2004 - 91.jpg
0:310 Nepal-Tibet-2004 - 92.jpg
0:311 Nepal-Tibet-2004 - 93.jpg
0:312 Nepal-Tibet-2004 - 94.jpg
0:313 Nepal-Tibet-2004 - 95.jpg
0:314 Nepal-Tibet-2004 - 96.jpg
0:315 Nepal-Tibet-2004 - 97.jpg
0:316 Nepal-Tibet-2004 - 98.jpg
0:317 Nepal-Tibet-2004 - 99.jpg
    1 directories scanned
  318 image files read
Jamess-MacBook-Pro:~ jamesbayliss-smith$


PH Edit: Formatted output as a code block

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

fdewulf

Thank you Phil and classicbs for all this.   

This solves a huge problem for Mac users with the Photos App: 

Apple has chosen to only allow one form of sorting in the shared iCloud folders: creation date, most recent first.  (It seems)

I have over 80,000 photos neatly organized in catalogs with numerical name to sort them in the right order.
So now I need to be able to go wrap the Exif command above using an Automator App, Service or maybe even folder action?
So I can drop ANY folder with file in it and have it process the files and redate them without having to type the code in Terminal

What is the best way to do this?

fdewulf

OK I tested the setting up as a service with Automator and now I can right click on a folder and select my service that includes a 'RunShell Script' command that automatically uses the name fo the folder I right clicked and changes all the dated incrementally as you guys discussed above .   The only thing left is for me to figure out how to pass a user inputed date.

Hayo Baan

I haven't found a simple (I.e., one that doesn't require additional software/programming) way to get user input from within an Automator script (one would assume there was, but alas it doesn't seem so). A suggestion I can make Is to store the date in a file and have the script read that file. That way you can easily change the date and run the service as before.
Hayo Baan – Photography
Web: www.hayobaan.nl

StarGeek

Can an Automator script read the clipboard?  If so, you could copy the date to the clipboard before running the script. 
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

makapav

Thank-you everyone for your help and examples. I parsed through the information here to get the combinations I needed.

halfasia

I have tried using the above commands and receive the message "No file specified"

Andrews-Air:~ Andy$ exiftool '-datetimeoriginal+<0:$filesequence'/Users/Andy/Desktop/wedding/1
No file specified

Suggestions?