Hello There!
This is my first attempt at Adium Scripts and I was hoping to get some clarifications.
I downloaded a few Adium scripts and they have different shortcuts to get to them - for example, theres one that substitutes when I do a "%_bushism" and another one that substitutes when I do a "/prov". I see these phrases in the contents of the respective .AdiumScripts file - but dont know how to change this behavior. Changing the info.plist does not seem to help.
Any pointers?
Thanks,
AT.
Basic question on Adiumscripts and shortcuts
-
adium-tester
- Harmless
- Posts: 2
- Joined: Fri Aug 29, 2008 10:11 pm
Re: Basic question on Adiumscripts and shortcuts
This is controlled by the Info.plist file. Specifically there should be a Scripts array and each item in the array should be a Dictionary and should have a "Keyword" string that defines which commands the scripts should look for and a "File" string to define what script should be run when that string is found. It will look something like this:
So in this example if someone types %_template after the Adiumscript has been loaded into Adium, the templatescript.scpt script will be run and what ever is returned from it will replace the %_template string in the chat window.
Once the plist is modified you may need to remove and readd the script for the changes to take affect.
Code: Select all
<array>
<dict>
<key>File</key>
<string>templatescript</string>
<key>Keyword</key>
<string>%_template</string>
<key>Title</key>
<string>Bundle Template Example</string>
</dict>
</array>
Once the plist is modified you may need to remove and readd the script for the changes to take affect.
-
adium-tester
- Harmless
- Posts: 2
- Joined: Fri Aug 29, 2008 10:11 pm
Re: Basic question on Adiumscripts and shortcuts
Thanks a bunch!
I had figured out that the info.plist had to be edited and even where it needed editing - like you mentioned. I did not know I had to kill Adium and basically re-start it to make this work. Removing and re-adding the script did not help but closing and re-opening Adium did. Your post was a great pointer.
Cheers,
AT.
I had figured out that the info.plist had to be edited and even where it needed editing - like you mentioned. I did not know I had to kill Adium and basically re-start it to make this work. Removing and re-adding the script did not help but closing and re-opening Adium did. Your post was a great pointer.
Cheers,
AT.