if... then in the events prefs?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

if... then in the events prefs?

Post by yelly »

it would be really cool if could make conditions in the events prefs, i.e.:
received new message
if adium is frontmost then
bounce dock icon
sound "..."
else
display growl notif
sound "..."
end if

this is specific example would make having conversations only using Growl and Quicksilver.
I know that is really applescripty, but it would be so much more intuitive if it was right in Adium.
yelly[/u]
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

That specific case is already covered, though: Message Received (Background Chat) is its own event :)
The duck still burns.
--
My company: Saltatory Software. Check it out :)
User avatar
Tipo 61
Grandé
Posts: 910
Joined: Fri Dec 10, 2004 11:12 pm
Location: Boston, MA
Contact:

Post by Tipo 61 »

I personally would like this option for other events though... Like, it would be a lot less of an annoyance if I could only have a growl display for almost all the events when Adium is in the background. I don't really need to see a growl notification on a new message when Adium is in the front.
User avatar
TheSilverFox06
Grandé
Posts: 770
Joined: Fri Dec 03, 2004 10:16 pm
Location: St. Paul, MN

Post by TheSilverFox06 »

You could always have the event run an applescript, and put the if/then statement in the script. This is how I did the message received (bg chat) before it was implemented into the events pane.
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

evands wrote:That specific case is already covered, though: Message Received (Background Chat) is its own event :)
thanks.
I used this only was an example, events conditioning would still be cool, and in an ideal situation, it would not require any AS knowledge at all, conditioning for everyone!!!
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

I know this is a little off topic, but i made the "message in background" event only contain a sound and a Growl notif, but my dock icon (the Chelsea one if it makes a difference (yeah yeah, i know, Middlesborough)), insists on flashing "Goal Goal Goal" when i receive a BG message.
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

yelly wrote:conditioning for everyone!!!
I think by its very nature conditionals are not for everyone. Specifically I think of the standard user, who wouldn't understand if/else if/else structures at all and wouldn't see a use (because it's beyond their standard scope of reasoning.) The more computer savvy a person, the easier the concept, but not everyone is computer savvy :)
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

bgannin wrote:
yelly wrote:conditioning for everyone!!!
I think by its very nature conditionals are not for everyone. Specifically I think of the standard user, who wouldn't understand if/else if/else structures at all and wouldn't see a use (because it's beyond their standard scope of reasoning.) The more computer savvy a person, the easier the concept, but not everyone is computer savvy :)
true, but the better job you guys do making this user intuitive, the less computer savvy you have to be.
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

yelly wrote:I know this is a little off topic, but i made the "message in background" event only contain a sound and a Growl notif, but my dock icon (the Chelsea one if it makes a difference (yeah yeah, i know, Middlesborough)), insists on flashing "Goal Goal Goal" when i receive a BG message.
Um, is the contact's name Goal Goal Goal? Or is that the alert state for your dock icon?
The duck still burns.
--
My company: Saltatory Software. Check it out :)
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

evands wrote:
yelly wrote:I know this is a little off topic, but i made the "message in background" event only contain a sound and a Growl notif, but my dock icon (the Chelsea one if it makes a difference (yeah yeah, i know, Middlesborough)), insists on flashing "Goal Goal Goal" when i receive a BG message.
Um, is the contact's name Goal Goal Goal? Or is that the alert state for your dock icon?
alert state
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

In 0.8x, the alert state always animates for new messages. In 1.0svn, you can disable it entirely. You can't control it via the Events system in either case.
The duck still burns.
--
My company: Saltatory Software. Check it out :)
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

well, until then, hacking at .plists will suffice.
Post Reply