Page 1 of 1

detecting if a movie has an associated SRT file

PostPosted: Sat Nov 17, 2012 1:36 pm
by jomaweb
hi folks

I've tried to figure it out how to detect if inside a given folder full of movies, every movie has its SRT file and if not, then run an apple script to search for it.

The online srt search script part works flawlessly, but i'm stuck on detecting if a movie lacks of srt file.

Preconditions:
- just one folder full of movies
- some movies got srt file, some not
- if present, the srt file has the same name than the movie (Golden_Eye_.mkv, Golden_Eye.srt)

please, any hint would be much appreciated

Re: detecting if a movie has an associated SRT file

PostPosted: Mon Nov 19, 2012 6:11 pm
by Mr_Noodle
You'll have to write a script (either shellscript or AppleScript) and use it in a condition (either Passes Shellscript or Passes AppleScript).

Re: detecting if a movie has an associated SRT file

PostPosted: Tue Nov 20, 2012 3:10 pm
by jomaweb
And that script would be?.....

Re: detecting if a movie has an associated SRT file

PostPosted: Wed Nov 21, 2012 8:27 pm
by Mr_Noodle
Well, that is beyond the support I can give. If you aren't up on scripting then maybe someone else can pipe in here with a script you can use.