Automator workflow (open file with app) + equivalent script in AHK / Windows
$10-30 USD
Closed
Posted over 10 years ago
$10-30 USD
Paid on delivery
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 ([login to view URL]), 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 [login to view URL] (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.
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
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.