I frequently work with captioning files that are essentially text files with thousands of timecodes and caption codes seperated by tabs.
___they are formatted like this
01:33:04:12 9420 9420 94ae 94ae 9470 9470 57c8 45ce 2049 20c1 d3cb 45c4 20c8 49cd 20c8 49d3 20ce c1cd 452c 942f 942f
01:33:05:27 9420 9420 94ae 94ae 91d0 91d0 c845 20c7 c1d6 4520 cd45 20c1 ce20 c1ce d357 4552 9170 9170 4920 c449 c4ce a780 9229 9229 5420 5245 c14c 4cd9 20d5 cec4 4552 d354 c1ce c4ae 942f 942f
01:33:09:28 9420 9420 94ae 94ae 94d0 94d0 4954 a780 9229 9229 d320 c1d3 2049 4620 c845 2057 c1ce 54d3 20cd 4580 9470 9470 544f 20c4 49d3 434f d645 5220 d34f cd45 54c8 49ce c780 942f 942f
01:33:12:20 9420 9420 94ae 94ae 9470 9470 c1c2 4fd5 5420 c849 cd20 464f 5220 cdd9 d345 4c46 ae80 942f 942f
01:33:15:15 942c 942c
01:33:19:07 9420 9420 94ae 94ae 9470 9470 4920 ce45 d645 5220 c1d3 cb45 c420 464f 5220 54c8 49d3 ae80 942f 942f
01:33:21:20 9420 9420 94ae 94ae 9470 9470 d94f d520 434f d54c c420 c14c 57c1 d9d3 20d3 c1d9 20ce 4fae 942f 942f
01:33:25:13 9420 9420 94ae 94ae 9470 9470 54c8 4520 c445 d345 5254 a780 9229 9229 d320 c120 c249 c720 d04c c143 45ae 942f 942f
01:33:27:16 9420 9420 94ae 94ae 94d0 94d0 d045 52c8 c1d0 d320 c249 c720 45ce 4fd5 c7c8 9470 9470 464f 5220 45d6 45ce 20c1 20c7 4fc4 20ce 4f54 2054 4f20 4649 cec4 20d9 4fd5 ae80 942f 942f
01:33:32:26 9420 9420 94ae 94ae 9470 9470 a8e3 f279 e96e 6729 942f 942f
01:33:36:08 942c 942c
Sometimes I need to slide a group of timecodes to fix their syncronization with video. For example, say all of these timecodes are two and a half seconds too late. I would like to be able use applescript to say move all of these timecodes 75 frames earlier.
Right now all I can do is bring my text file into word, remove all of the spaces between the lines then bring it into excel and use this script to build a list of all of the time codes I want shifted.
I dont know where to go from here.
Ideally I could work with my original text file and applescript instead of going to word, then excel then to applescript.
Any help would be greatly apreciated.
thanks,
Ryan