Apple Event: May 7th at 7 am PT

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

Feb 11, 2012 3:42 PM in response to tiagofromcoimbra

(jumped the gun, there 🙂 you do have that "if")


I'm testing your "bounds" strategy with his code:


set {x, y, x2, y2} to bounds of window "iChat Buddies"

set zoomed of window "iChat Buddies" to not (zoomed of window "iChat Buddies")

set {a, b, a2, b2} to bounds of window "iChat Buddies"

set bounds of window "iChat Buddies" to {x, y, x2, b2}


It seems to be working quite well. Your way is the better way: it's more versatile and simple (the window just redraws with whatever width it has.)

Feb 12, 2012 5:52 PM 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


Hi, guys:




I've been testing it for the last day and here's the latest version of the script (0.5.1).

It's at that same link, as always.


It follows Joey Hoer's -Thanks!- concept for setting the bounds of the window (much better, you can interact naturally with the window: it will keep its width and position, whatever they are);


It has no delay at all in "buddy became available" events, now.




I think we're pretty much at the limits of were AppleScript allows us to be with iChat, so there probably won't be much more tweaks to this script.


The only glitches I noticed with this script are for reasons outside of what can be done with it: Bonjour doesn't produce "buddy became available" or "buddy became unavailable" events, don't know why, and sometimes GoogleTalk fails to produce "buddy became unavailable" events when a contact logs out, too.


The sporadic delay related to an accumulation of "buddy became unavailable" events with Facebook -inevitable with this "set zoomed of window to true" strategy and the absence of a realistic alternative- is reduced to a minimum.


No problems whatsoever with other Jabber services, Yahoo! and AIM.




This last version of the script is working perfectly with Growl, delay is reduced to a point were it seems the funcionality and user experience of iChat are kept intact, and the window is behaving perfectly with this new code!




I hope you find it useful!

I'd be thrilled to have your feedback on it!


Cheers!

Feb 13, 2012 11:29 AM in response to tiagofromcoimbra

HI,


Couple of comments.


Great work on this.


Bonjour.

The other services (AIM, Jabber etc.) have Buddies "Flagged" when they are on Line and this info is then pushed to the Client (your iChat).

Bonjour works on the Discovery of services (And the info they provide). Therefore the Buddy's Computer Broadcasts it is on Line and iChat adds the person's Address Book entry (their My Card).


Not sure I have explained that particularly well.


Second attempt

iChat can see your whole Buddy list with AIM. The Buddies are marked with the different States, (On-line, Off-line, Available, Away, Invisible, Blocked or Allowed (or not).
The Login handshake is already done. What you see after that is a change in those states.

Bonjour is constantly checking your LAN for other Bonjour Signals. As Bonjour is Zero Configuration Networking the Handshake is a live event as the other computer comes On-Line and then iChat on the "new computer" broadcasts that User's Name from their Address Book.

Bonjour also does not trigger the Alert sounds for Buddy is On-Line (If you pop up that Buddies Info card you will see you don't have access to the Alerts tab to set them individually)



GoogleTalk.

As a Buddy can effectively have more than one Login to a Jabber server by setting the Priority to different levels in different apps and devices it is possible that they are not fully logging out (or may be an old web page Login and it's default period still exists).


In iChat 4 and 5 logging in to the Googlemail web Page and the "Chat" there will technically kick iChat off Line as iChat and the web option have the same Priority and neither can be changed.

The Buddy list does not fold in iChat if your Login yourself but you will find any Text chat between you and your Buddy will now be in the Browser (in fact it seems you may be able to continue an iChat to iChat and Web Browser to Web Browser to the same Buddy with the same names separately {i.e. Two chats with the same logins} ) Essentially the chat seems to follow the "Last" login although iChat seems to hold on to the fact it is logged in and the Jabber server keeps the chats separate.


Anyhow it will be something around this area that causes the Google issue.





User uploaded file
7:19 PM Monday; February 13, 2012

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


 iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images."  No, Seriously


Message was edited by: Ralph Johns (UK)

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.