[HELP REQ] AppleScript to tell Adium to go away
Posted: Sun Dec 04, 2005 10:27 am
If anyone can help me with this, I'd appreciate it greatly.
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:
I have Adium calling this script on any message received from my other user, but so far i cannot get it to only work when i send "go away", and not when I send any mesage (i.e. removing the if statement works).
On 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.
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.