How do I tell AppleScript which Messages chat is active?

Discussion in 'Mac OS X Lion (10.7)' started by devburke, Feb 23, 2012.

  1. devburke Guest

    Oct 16, 2008
    I'm trying to mess with Growl scripts for Messages. All the ones I've found don't work with preventing messages when the chat in question is the currently selected chat. Can anyone help me figure out how to do that?

    Also, if somebody knows how to make the buddy list auto-adjust its height like it used to with Chax pre-Lion, that would be awesome :)

  2. Paradoxally macrumors 68000

    Feb 4, 2011
    In Applescript

    tell application "System Events"
    		if (name of the first process whose frontmost is true) is not "iChat" then
    			--enter your code to invoke growl stuff here
    		end if
    end tell
  3. devburke thread starter Guest

    Oct 16, 2008
    Thanks! But is there away to have it go by specific chat, just application? I'd still like to see notifications for the chats that aren't selected. Maybe this just isn't possible though.

Share This Page