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

    Joined:
    Oct 16, 2008
    #1
    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 :)

    Thanks!
     
  2. Paradoxally macrumors 65816

    Joined:
    Feb 4, 2011
    #2
    In Applescript

    Code:
    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

    Joined:
    Oct 16, 2008
    #3
    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