ichat invisible status

ok, so im trying to make a script to turn my ichat status to invisible. here is what i have

tell application "iChat" to set status to invisible

whenever i try to run it, i just go offline. whats my problem? is it called something else besides invisible? thanks!

Model: MacBook
Browser: Safari 523.10.6
Operating System: Mac OS X (10.5)

anyone?:confused:

Welcome. :slight_smile:

That sounds like a bug.

really?
dang…
so there is no way i can get it to work?

what im trying to do is whenever a certain person signs on aim, it makes me go invisible. i know how to put the code into ichat, but it just makes me go offline totally instead.

You could try using keystrokes:

tell application "iChat" to activate
tell application "System Events"
	keystroke "i" using {control down, command down}
end tell

oh thanks a LOT that worked!

i never thought about that…

FYI, I submitted a bug report, and it was marked as a duplicate, so this is a known issue.

ok i appreciate it…
thanks again for the fix, it seems so obvious to me now…

ok, perhaps i was to hasty with my reply.

running the command on its own works great.
in ichat, you know how you can set a contact to run a script when they login, well when that person logs in, i get error -1708.
is that a setting i can change, or is unfixable?

thanks…