XXXX: mp4 name
YYYY: srt name
ZZZZ: output mp4 name (since DT allows files with same names in a group, my preference is making this same as original mp4 name, ie XXXX)
The problem is, I have hundreds of video-subtitle pairs, and running this code manually would take enormous time.
It would be great if I select a pair of video and subtitle files and run a script via toolbar, and see output file in the same group. Can someone please share the script or lead me through the way how a AppleScript novice like me can achieve this?
If there was some unique connection between each of the paired files (e.g. both in the same sub-folder, same name but different extension, etc…) then automation could process them in a batch. (As an aside, if the names were identical then many players would automatically play the subtitle.)
Or even a unique number… for example, if you grab a batch of videos and rename them by prepending a 3-digit number, then grab the matching set of subtitles in the same order and do the same, then it would be simple to match them in a script.