I'm trying to write a script to have Adium go away if i send myself (from another screen name) a message saying "go away". (i.e. when I forget to go away before leaving my apartment.) Unfortunately, I'm not very good with Applescript, and am having trouble getting this to work.
What I have right now:
Code: Select all
tell application "Adium"
if (get content plainText message) = "go away" then
set my status message to "leave a message."
set my status type to away
end if
end tellOn a somewhat related matter...is there any way to have Adium select a pre-defined status message? Ideally, rather than picking an away status, it'd be preferred if I can tell myself which of my preset status messages to use.
One final thing, which I think may be a bug...if I remove the if statement, and manage to send myself away with that script, it looks like this:

(Note that b0r3dm0ri is not being handled by Adium, so that account is not showing as away.)
Shouldn't this be changing the color of the status message (at the top of the contacts window) to red, rather than green?
Again...thanks in advance for any assistance.
