I was talking to Ben and saw another opening for the classic and overused “That’s what she said” joke. As I was typing it in, I realized I should just make it easier on myself and write a simple script to do it for me. So I did.
Creating it is very simple. First, we need to setup a file structure. Create a folder called whatshesaid.AdiumScripts. Then right click(CTLR+click), and click ’show package contents.’ Create a folder called Contents. Inside Contents, create a folder called Resources. The result:
The next step is to create the actual script. Enter the Resources folder. Open up the Script Editor from the Applications folder. If this is not installed, then just be prepared to save a file using the .scpt extension. Create a function like this:
return "thats what she said"
The on substitute() function will be called every time the script is used. Inside is an array of strings seperated by commas. Now the question is, how do we use the script?
Go up one level back to the Contents folder. Click HERE and drag the info.plist file into the directory. If you changed any of the defaults, make the appropriate changes.
And that’s it. Just click on the random.AdiumScripts icon and it should install. Type /she or %_she in a chatbox to test the script. That’s the simplest way to do it. There are some other XML properties that can be added but aren’t necessary for personal use. If you plan on publishing on Adium’s website, be sure to add any and all public standards.
You can add more substitutions by creating more script files and more entries into the XML tree. You can also edit the triggers by changing /she to any character sequence.
Your files will be installed in Library/Application Support/Adium 2.0/Scripts