Permalink

Master Ninja AppleScript II

This was posted over 18 years ago; my opinions, thoughts, attitude, and writing style may have evolved since then, and this post might have been different if it were to be posted today.

Like any good thing (”Master Ninja I”), there’s always going to be a sequel (”Master Ninja II”). Take my Random MST3k AppleScript from a few days ago, for instance… now there’s Random MST3k v.2!

It’s now been improved so that, instead of making a list of all the movies and then trying to figure out which ones don’t have a label, it now makes a list of the movies from the get-go that aren’t labeled and then picks a random movie from that list. This should help speed up picking a movie at random: imagine having 100 movies, and you’ve already watched 99 — it’d have to keep trying random numbers until it’s picked that one that hasn’t been seen yet! (But if you’ve got only one movie left to watch, why would you even bother with this script? Huh?) Now, any movie it picks will be one that you haven’t yet seen, assuming you’ve been labeling the movies that you have already seen like you’re supposed to.

Yeah, I guess it’s a basic script, but it’s my basic script and I’ve never really coded anything in AppleScript before these, so nyah nyah, I’m proud of it.