Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can the window size be auto-adjusted in Lion?

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

Posted on Sep 24, 2011 7:36 AM

Reply
22 replies

Sep 25, 2011 1:15 PM in response to Herbert

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.



User uploaded file
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

Sep 25, 2011 1:54 PM in response to Herbert

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.





User uploaded file
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

Sep 26, 2011 7:48 AM in response to Herbert

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.



User uploaded file
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

Nov 8, 2011 8:17 PM in response to joeyhoer

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!!!

Feb 11, 2012 12:52 AM in response to Herbert

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!!

Feb 11, 2012 12:44 PM in response to tiagofromcoimbra

@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!

Feb 11, 2012 2:30 PM in response to tiagofromcoimbra

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.

Feb 11, 2012 3:16 PM in response to joeyhoer

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).

Can the window size be auto-adjusted in Lion?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.