Adium 1.2 status change and help with AppleScript

3 views
Skip to first unread message

bruno

unread,
Feb 14, 2008, 6:51:15 PM2/14/08
to statz-developer
Hello,

I've been trying to debug while Statz is not able to work with Adium
1.2 and since I am not wizzkid with ObjC/Cocoa, it's been quite hard
so I decided to go down the AppleScript plugin way and I have a short
script working however I haven't figured out how to get the state
changes (not just the status)

property lastStatus : ""

using terms from application "Statz"
on update status to myStatus state myState
set a to update not applied
if lastStatus ≠ myStatus then
if myState ≠ available then
tell application "Adium"
go away with message myStatus
end tell
else
tell application "Adium"
go available with message myStatus
end tell
end if
set lastStatus to myStatus
set a to update succeeded
end if
return a
end update status to
end using terms from

this always change my state to Away on Adium as I don't know how to
get the myState content compared properly (this is my first
AppleScript attempt). Any ideas? Suggestions?
Reply all
Reply to author
Forward
0 new messages