I'd like to switch Skype status away/offline

tell application "Skype"
	if USERSTATUS of application "Skype" is "away" then
		send command "SET USERSTATUS online" script name "AppleScript status setter"
	else
		send command "SET USERSTATUS away" script name "AppleScript status setter"
	end if
end tell

But… “Skype got an error: Can’t make USERSTATUS into type specifier”
So, can i learn in some way current Skype status?

Thanks

Hello. You should be able to figure out the online status, by using UI Element Inspector, and locate a control that displays your online status.

There may be a lot more to it than that, but in theory it should be fully possible. I don’t use Skype, and can’t help you.