I'm having some trouble retrieving the status of contacts on my contact list using Applescript. I couldn't find anything (useful) about this topic here or on trac. So I'm asking if it's just me (or my stupid applescript) or if it is a bug in Adium.
What I want to do is getting the current status of a specific contact as a string. I tried the following code:
Code: Select all
tell application "Adium"
set contactStatus to status of first contact whose ID is theID
end tell
This code just gives me an error (something about: it can't be converted to reference). "theID" is some ID I defined earlier in my code. I also tried:
Code: Select all
tell application "Adium"
set contactStatus to status of first contact whose ID is theID as text
end tell
.. but it gives me the same error. On the other hand retrieving other information about the contact does work (like idle time etc). The only other thing not working is "status message". Also it does not give me the same error, it just gives me back an empty variable. So this is the next problem on my list.
But if I try the same with my own status (which seems to be implementet differently) it works:
Code: Select all
tell application "Adium"
set myStatus to (my status type) as string
end tell
So I'm asking: anybody ever got the same problem? Can it be fixed, is it a bug in Adium?
PS: I'm actually implementing some adium-features for salling clicker. I'd like to see who of my contacts is online/away/... and what message they left.