This AppleScript will find a random paragraph on a random page of your wiki, and then display it in a window. It also has some neat features built into it, such as:
- Open the quoted VoodooPad page
- Put the quote on your clipboard
- automatically find all URLs in a quote, and open any or all of them in your default client.
- Set preferences while the script is running:
- the minimum paragraph word length to find
- the maximum number of times to try and find a suitable paragraph on each random page.
- the maximum number of random pages to look for a suitable paragraph in before giving up. (might increase the wait time)
Note that preferences will only be saved between runs if you use the system-wide script
menu, save the script as an application, or use a script launcher that supports persistent properties. As of version 2.1.1, VoodooPad's built-in script menu does not support this. As a work-around, you can change the default values directly in the script.
Script submitted by – mike [dot] com [at] mac [dot] com