< Back

Example Scripts

These scripts cover most of the basic scriptable tasks supported by ThreadWatcher. To use the Python or Ruby scripts, you will need to have Appscript installed. In the case of Ruby this means installing the rubygem:

sudo gem install rb-appscript

For Python use setuptools:

sudo easy_install appscript

If you don't want to apply tags or ratings to images, those parts of the scripts can be deleted; most of the parameters to the main commands are optional. Any of the commands are usable from any language, the choice of language for each example is entirely arbitrary.

The Scripts

Download, rate, tag & save (Applescript) — Asks for tags and ratings before downloading the thread to your downloads folder.

Download, watch & save (Ruby) — Asks for a save location, then saves images as they are downloaded and continues to watch the thread and save new images.

Download using URL from Safari (Python) — Gets the URL from Safari and downloads the thread; does not automatically save or apply any tags.