Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 23, 2012, 06:29 PM   #1
devburke
Guest
 
Join Date: Oct 2008
How do I tell AppleScript which Messages chat is active?

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!
devburke is offline   0 Reply With Quote
Old Feb 25, 2012, 07:27 PM   #2
Paradoxally
macrumors 6502a
 
Join Date: Feb 2011
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
Paradoxally is offline   1 Reply With Quote
Old Feb 27, 2012, 11:14 PM   #3
devburke
Thread Starter
Guest
 
Join Date: Oct 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.
devburke is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X 10.7 Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
AppleScript to playpause active media Vegerot Mac Applications and Mac App Store 0 May 26, 2013 11:54 AM
Facebook chat with Messages Baklava OS X 10.8 Mountain Lion 0 Apr 8, 2013 01:59 PM
Is there a more active AppleScript forum site? moonman239 Mac Programming 7 Jan 22, 2013 06:56 PM
Messages Applescript vixducis OS X 10.8 Mountain Lion 0 Jan 22, 2013 03:55 AM
Messages: Is it supposed to have an active buddy list? east85 OS X 10.8 Mountain Lion 1 Aug 9, 2012 01:00 AM

Forum Jump

All times are GMT -5. The time now is 11:42 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC