Update News:
Ok, I may have fibbed when I said I would wait a period of time before releasing v2.0 Beta! Trust me I had all intentions of holding off, but what I wanted to do came to me in a flash and I had to write it down. To my surprise, it worked from the get go.
Changes:
v2.0 Beta
There has been no real changes to the stability or flow of things. Plugins are now auto loaded into AAIR. No need to edit the AAIR script to add a plugin. Simply create a plugin, place it in the ~/Documents/AAIR/ dir and restart iChat.
All plugins have been updated to handle their own help request. Type ‘command /?’ to retrieve information on command.
The help plugin is now dynamic, to reflect the auto loading of the main AAIR script. Plugins added to the AAIR dir will auto show up in ‘help’.
v1.3 Beta
Adopted StefanK’s main AAIR script for stability
v1.2 Beta
Added theCommand list. All commands can be added to script from one central location.
v1.1 Beta
Added plugin functionality.
Todo
No issue present
Availible Commands:
Download:
v2.0 Beta
http://www.mediafire.com/?8z077qz8kbrdfzh
v1.3 Beta
http://www.mediafire.com/?2opkfa3lyii6eca --Uber thanks to StefanK’s fix & rewrite of the main AAIR Script!
v1.2 Beta
http://www.mediafire.com/?sfhtzlg20sl2ks0
v1.1.1 Beta
http://www.mediafire.com/?z323p5hhaa1qa1q
Any questions, please feel free post.
Plugin Template
property plugin : "missing" -- Replace 'missing' with exact name of plugin. No spaces. Example if I saved this plugin as time.scpt I would put the word time in place of "missing."
on AAIR(theMessage, staticCommand, dynamicCommand, weatherLoc)
try
if dynamicCommand is "/?" then -- This is for returning extra information about plugin.
set theResponse to plugin & "
I am a command and I do stuff. But what Do I do? Edit theResponse to refelect my purpose."
else
(*your script starts here*)
--Please note that you can add and call additional handlers.
(*your script ends here**)
end if
on error error_message
set theResponse to (plugin & " Control. " & error_message)
end try
return theResponse
end AAIR
(*add additional handlers here if needed*)
Example Script Using Template - Simple
property plugin : "time" -- Replace 'missing' with exact name of plugin. No spaces. Example if I saved this plugin as time.scpt I would put the word time in place of "missing."
on AAIR(theMessage, staticCommand, dynamicCommand, weatherLoc)
try
if dynamicCommand is "/?" then -- This is for returning extra information about plugin.
set theResponse to plugin & "
I am a command and I do stuff. But what Do I do? Edit theResponse to refelect my purpose."
else
(*your script starts here*)
--Please note that you can add and call additional handlers.
set hour to hours of (current date)
set Min to minutes of (current date)
set theResponse to "Current Time: " & hour & ":" & Min
(*your script ends here**)
end if
on error error_message
set theResponse to (plugin & " Control. " & error_message)
end try
return theResponse
end AAIR
(*add additional handlers here if needed*)
Must be saved as ‘time.scpt’