User:Nihiltres/Category-tree-lister

I wrote a script in AppleScript that takes a category title and gives back a list of the pages in the category tree, optionally excluding a list of pages/subcategories. It's relatively rough—for example, I haven't bothered to make it work on categories with more than 500 items, yet—but it's nonetheless probably highly useful for anyone who's on a Mac and thus doesn't have access to AWB.

The script requires two things to work: A computer running Mac OS X, and a third-party scripting extension called TextCommands, freely available online.

I'm mostly just dumping the script here for purposes of posterity, but hopefully it will ultimately be useful. :)

In the use I made of it, I then wrote a quick purpose-built script using the output from two different runs of the first script (i.e. using different parameters within the  call) to compare the lists and format them slightly for output to a wiki page, which I include below: