Automator workflow (open file with app) + equivalent script in AHK / Windows

NOTE: Sorry not all relevant skills were available (AppleScript, Automator, Script, AutoHotkey) so I had to use approximations.

I want to create a folder action in OS X (and the equivalent in Windows / AHK) so that whenever I throw a video file in a folder, this file will be opened with a free program called Subtitles ([url removed, login to view]), an appropriate subtitle will be downloaded (preferably if everything is done in the background without even showing the app's UI) and then the Subtitles app is closed when done. The result is you'll now have a subtitle file with the same name as the video file and in the same directory, as soon as the file is downloaded. That's it, basically, but here's some more context:

Normally what I would do is download a TV show or movie, then go to [url removed, login to view] (or any subtitles site) and look for the appropriate subtitle file. The Subtitles app makes the whole process easier. You just drag a video file onto it and it will fetch the correct subtitle track, download it and put it on the same folder the video is in, so whenever you decide to watch the video the subtitles will be ready. I want to make it even more streamlined. Download TV Show or Movie onto watched folder -> BOOM -> Subtitle is already there. (FYI running OS X 10.9 Mavericks)

I've already have a basic working Automator script but it has some issues. Here's what's working and what's not:

+ It takes video files individually and fetches subtitles using the Subtitles app

+ It can look within subfolders (Get Folder Contents - repeat for each subfolder) and fetch subtitles for those files too

Not working:

- If copying large files over the network or another hard drive, the script launches before the files are finished copying, thus subtitles are not fetched for all of them.

- It doesn't run in the background (the Subtitles app loads and is brought to focus)

- White list of blacklist certain file types so it doesn't try to run with anything other than videos

- Subtitles app does't quit when done. (Tried but quits before finishing).

Ideally I want all of the points covered but if it's not possible due to Automator or AppleScript limitations, at the very least I want the first of them (wait until large files are copied before launching the app). I know this can be done as there are examples online but I can't get it working. Here are some resources I was looking into.

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

I'm attaching my workflow so you already have something to start with, I just want the remaining functionality. And then port the same to an AutoHotkey script for use in Windows computer. This is for a how to guide I'm posting online.

Habilidades: AutoHotkey, Programação C, Mac OS, Instalação de Script, Área de trabalho do Windows

Veja mais: windows action script, what program do i use to open a php file, what is in programming, what can you do with programming, watch programming online, watch free online net, types of computer programming, tv programming guide, tv programming, tv guide programming, programming resources, programming questions in c#.net, programming online free, programming guide, programming forums, php programming in video download, os x programming, online programming app, online computer programming, just want to start programming, is computer programming hard, html programming file, html computer programming, how to start in computer programming, how to start computer programming

Acerca do Empregador:
( 5 comentários ) Guayaquil, Ecuador

ID do Projeto: #5141309

1 freelancer is bidding on average $25 for this job


A proposal has not yet been provided

$25 USD in 10 dias
(0 Comentários)