Friday, 3 February 2012

iChat 6 and Growl 1.3 notification script

+

I really like Growl notifications and also iChat. Before Lion I was using Chax patch that among other things allowed you to have Growl notifications in iChat. However, after Lion upgrade, the patch did not work anymore. Actually, many of the Chax features were built in the new iChat 6 from Lion.

So, I was researching in the net for a script that would allow me to use Growl notifications with iChat and I actually found this from Scripting OS X. However the script was for older versions of Growl, not the latest 1.3. So with my tiny knowledge of apple script, I managed to modify it to work with Growl 1.3. Also, I modified it the way that I only get Growl notifications if iChat is not the active app. I don't want to receive Growl notifications of messages that I am actually reading if the chat window is the active one.

So if you are interested, please feel free to download it from here

UPDATE: if you do not want message text to show, please try this other script from here.

In order to activate the script, copy it into the Applescript Editor and save it as "Growl iChat" as a script file. Make sure you save or place the file in this directory (create it if it does not exist):
 ~/Library/Scripts/iChat/

To configure it, open iChat, go to Preferences -> Alerts and select the Event “Message Received”, check “Run Applescript” and choose “Growl iChat.scpt”. Actually, the script also reacts to “Buddy Becomes Available,” “Buddy Becomes Unavailable” and “File Transfer Completed.”

Enjoy!

10 comments:

  1. Hi Guillermo!

    I integrated your Script with on of my own to Auto-Resize Buddy Lists: I hope you don't mind :)

    It's here: http://tiagodovale.deviantart.com/#/d4p4x4c

    ReplyDelete
  2. Hi Tiago,
    Great to see new ideas evolving from it! :-)

    ReplyDelete
  3. I know nothing about Applescript - is it possible to modify the script so that on "message received" only the person's name and picture show up, and not the preview of the actual message? I really like notification, but do not want someone behind me to be able to see the actual text of the message.

    I've looked everywhere, and have not found anything. Thanks in advance!

    ReplyDelete
    Replies
    1. Hi, I think it should be quite simple to do so. I will have a look at it and try to create another script where not text message is shown.

      Delete
    2. Awesome! Thank you very much!

      Delete
    3. Try the new script and let me know if it works. I cannot test it as I am running nowadays Messages instead of iChatl

      Delete
    4. I tried the script, but get the error:

      Event: Message Received
      File: Growl iChat2.scpt
      Error: AppleScript Editor got an error: Can’t continue «event register».

      I really appreciate your help, but don't spend too much time on it. I'm sure you have better things to do.

      Delete
    5. Hi, I will check again this evening and let you know.

      Delete
    6. Hi Gust, try again the new version. Hope this one works

      Delete
    7. Hi Guillermo - I am getting the same error. I feel bad asking you to spend any more time on this. Thanks for giving it a try...I appreciate it!

      Delete