Previous 1 2 Next 22 Replies Latest reply: Feb 16, 2012 9:40 AM by tiagofromcoimbra
Herbert Level 2 Level 2 (225 points)

I'm really missing the Chax plugin, it doesn't seem to be supported any longer In Lion. I mostly used it for the window auto-resize function. Now I'm left with 3 iChat windows cluttering the screen of my MacBook Pro, taking up precious real estate.

 

Of course I could consolidate my 3 accounts into one window, but that means a lot of scrolling, uncertaintry which account my buddy is on and a loss of the group feature for my work colleagues.

 

Does anyone know of a replacement for this Chax functionality To auto-resize windows?

 

Thank you!


MacBook Pro, Mac OS X (10.6.8), 750GB HD
  • Ralph Johns (UK) Level 9 Level 9 (69,425 points)

    Hi,

     

    Kent Sutherland that write Chax has a Contact link on the Chax Page (top right).

     

    It is worthwhile asking him if he is writing an update.  (I have heard that he often responds to people who email him)

     

    I know of no other Add-ons that will do this.

     

     


    9:15 PM      Sunday; September 25, 2011


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),

    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Herbert Level 2 Level 2 (225 points)

    Thank you Ralph! I have done this, twice already, but haven't heard back at all.

     

    I guess I have to surrender and hope that the forthcoming OS X update may include this feature.

  • Ralph Johns (UK) Level 9 Level 9 (69,425 points)

    Hi,

     

    It is unusual for him not to respond.

     

    Having said that in previous versions Updates to work with the latest OS have been released not long after the actual OS Upgrade and, based on that, he would seem to be running late as it were.

     

    I am not sure that there is anything to suggest.

     

    You could try AppleScript.

     

     

     

     


    9:53 PM      Sunday; September 25, 2011


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),

    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Herbert Level 2 Level 2 (225 points)

    Thank you Ralph, as always, you're trying to helpful! Very much appreciated!

  • Ralph Johns (UK) Level 9 Level 9 (69,425 points)

    Hi,

     

    I opened Applescript Editor and then the Dictionary (File Menu) for iChat.

     

    I can see various things about the windows that AppleScript is supposed to be able to manipulate.

    At this point I don't know enough about AppleScript to proceed.

     

     


    3:48 PM      Monday; September 26, 2011


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),

    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • joeyhoer Level 1 Level 1 (0 points)

    you can do this with AppleScript and login/logout events in the preferences window of iChat.

     

     

    tell application "iChat"

    set zoomed of window "iChat Buddies" to true

    end tell

     

     

     

     

    You may need to add a delay, and it may slow down iChat.

  • Herbert Level 2 Level 2 (225 points)

    Thank you, joeyhoer! This looks very promising!

     

    Despite the fact that I'm not a Script expert by any measure I managed to compile your script, saved it and set the login event in iChat to run the script, just to test if this would work. It worked!

     

    At relaunch of iChat I ran into three issues:

     

    • The window resized in width and height to accommodate the available buddy list, very cool! But I really would want to adjust only the height (like Chax did) as the minimum window width renders buddy names quite unreadable.
    • The second issue is around the fact that I prefer to use separate windows for my three accounts, as one is work related and two are not. And this of course doesn't work with a script that addresses the exact name of one window - I assume I can't have separate scripts for separate windows.
    • And finally, I assume this script does not auto-adjust when the buddy list is adding or removing names, is this correct? Which kind of would defeat the purpose of this exercise.

     

    Is there a way to address these 3 points with Apple Script?

     

    Thank you for helping!!!

  • tiagofromcoimbra Level 1 Level 1 (10 points)

    I stumbled upon the exact same problem and went on to write a script.

    I published it here:

    http://tiagodovale.deviantart.com/art/Chax-alternative-for-iChat-Growl-and-Auto- Resize-284084652

     

    You'll have to edit the script and repeat (once for every service) it so it mentions all of your Buddy List windows by name.

    While at that, you can specify the fixed width you'd like (I've set it at 190, the minimum).

     

    Finally, of course, you'll have to assign the script to the "Buddy Became Available" and "Buddy Became Unavailable" events, on the "Alerts" tab of iChat's preferences.

     

    The script is quite commented, I think you'll manage well.

    I placed there a version with Growl notificarions, too.

     

    Cheers!!

  • Herbert Level 2 Level 2 (225 points)

    @tiagofromcoimbra Thank you so much! Your script works wonderfully! I have three iChat windows open, Google Chat, Facebook and Mac.com, and all adjust windowsizes as expected. Great!!!

     

    I was not able to play around with window width, changing 'x + 190' to 'x2' didn't make a difference. Changing it to 'x + 250' resulted in constand redrawing of this wider window. So I left it at your original setting of 'x + 190' and the window resize script is working fine.

     

    Thank you!

  • tiagofromcoimbra Level 1 Level 1 (10 points)

    Those are great news Thanks!!

     

    (If you went for the "x2" it should adjust the width of the window to the largest of your buddy's names and status messages combiantion, but only if it excedes those 190 pixel of width -iChat's minimum.)

  • Herbert Level 2 Level 2 (225 points)

    Yes, thanks! I tried that width change to x2 but the width stayed at the 190 px and some of the longer buddy names got truncated.

  • joeyhoer Level 1 Level 1 (0 points)

    I wrote a script that did just this before this thread was created - I called it iChat+. My script automatically calculates the windows width before it resizes so the width remains the same after a resize... none of the funky variable addition stuff, becuase in my opinion it should "just work". Please, feel free to take a look at the code on pastebin, use it at your will to modify or roll your own solution. The code is not well commented, and does not come with any documentation. (Although the variable names should be fairly self explanitory)

     

    PLEASE NOTE: There is a reason I never released this code - it doesn't "just work".

     

    To elaborate, I use iChat's Jabber feature to connect with Facebook chat. This is the only thing I use iChat for. It appears that Facebook's chat solution sends login and logout status updates at regular intervals, meaning that when Facebook pushes this info to iChat you will get multiple buddies logging in and out simulatenously. When the script executes, AppleScript will hijack iChat and will not allow you to execute other functions while the AppleScript is executing. In short, you cannot send messages (or perform any other function) momentarily while buddies are logging in or out.

     

    This issue is less visible when only one buddy logs in or out at a time.

     

    This is not a problem with the script, it is an issue with Apple's implemenation of AppleScript within iChat and Facebook's use of Jabber. I have no doubt that this error will also occur with the script @tiagofromcoimbra posted above.

  • tiagofromcoimbra Level 1 Level 1 (10 points)

    I'll look into it Thanks!

    Keep on checking that link: I'll be uploading updated versions always there's a fix or an upgrade!

  • tiagofromcoimbra Level 1 Level 1 (10 points)

    Hi Joeyhoer!

     

    I took a loot at your script: it's junny to see how we approched the same problem with a similar strategy and wrote it in such a different way I'm quite fond of how you worked those bounds: I'm gonna try it myself and see how it pans out!

     

    A big part of the problem you mentioned is the delay we both set for when a buddy became available: it will be 0.4 seconds multiplied by how many contacts you have, in your case. I'm working with 0.1 seconds: this makes that sporadic thing with facebook hardly noticeable.

     

    Right now I'm testing no delay at all: I can't notice any effect, for now...

     

     

     

    Can't get rid of the "unavailable" delay, though (unless we'd turn off the animations).

Previous 1 2 Next