Convert words in MediaWiki page titles to MediaWiki categories

Most of the times I find that is quite reasonable to have the words that are in the title of a MediaWiki page as categories of it. So I decided to automate the whole procedure :-) using the following AppleScript:

The above AppleScript is for Firefox because I browse and edit my wikis mainly using Firefox. Unfortunately Firefox’s support for AppleScript is minimal. So if you would like to use this AppleScript, you need to change a little its source code. Specifically, you need to set the value of the property firstTwoLettersOfMyWikiName. Finally in the variable wordsNotForCategories I specify some words that I do not want to be converted to categories.

You should be in the edit mode of a MediaWiki page before executing the script. Moreover, the cursor should be at the point that you would like the categories to be inserted because the result of the AppleScript is pasted automatically.

If you use Safari you can achieve the same results using the following AppleScript:


You do not need to make any modifications to this script.

16
Mar 2012
COMMENTS No Comments