Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.8: Automatically open the Messages chat window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.8: Automatically open the Messages chat window
Authored by: peterpk on Apr 23, '13 02:09:58PM
With some tinkering I found a fix to the "Can't set window Messages to true" error. I think it was getting confused because the name of the Messages window changes when a new message comes in, since it adds "(1 unread)" to the title.
using terms from application "Messages"
	on message received theText from theBuddy for theChat
		set mWin to the first window whose name starts with "Messages"
		set (the visible of mWin) to true
	end message received
end using terms from

[ Reply to This | # ]
10.8: Automatically open the Messages chat window
Authored by: jhersco on Jul 08, '13 09:49:35AM

I copied this script exactly and saved it. When I receive a new message, the Messages window opens along with another window that shows the following:

An error occurred while executing an AppleScript event handler.

Event: Message Received
File: Open Messages Window.scpt
Error: Canít make visiblle of window id 1204 into type reference.

I'm looking for a fix. Thanks.

[ Reply to This | # ]