Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Keep Yahoo IM Messsages accounts online' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keep Yahoo IM Messsages accounts online
Authored by: paulgrav on Dec 19, '12 09:08:02AM

A better solution might be this AppleScript.

Open AppleScript Editor and paste the following into the script editor window.

using terms from application "Messages"
    on login finished for theService
        log in service "Yahoo"
    end login finished
end using terms from

You might need to change "Yahoo" in the line containing log in service "Yahoo" to what’s in the Description field of your Yahoo! account in Messages. You can view the value of the description field by opening Messages and pressing ⌘+, > Accounts > Click on Yahoo

Save the script somewhere.

Go back to Messages’ preferences and click on Alerts. Ensure that the “When I Log In” event field is selected. Tick ”Run an AppleScript script:” and choose the script that you just created.

This should solve the problem of Yahoo! not reconnecting.



[ Reply to This | # ]
Keep Yahoo IM Messsages accounts online
Authored by: keirthomas on Dec 19, '12 12:46:55PM

That's a really interesting approach, but perhaps better modified so -- like the AppleScript in the main article -- it attempts takes ALL accounts online?

In other words, use the following AppleScript:

tell application "System Events" to tell application "Messages" to log in

... save it out somewhere safe, then follow the instructions you mentioned to get it to run each time Messages attempts to log in.

The problem is that I don't think the script will be run unless Messages starts, and as mentioned it tends to terminate itself and not restart after waking from sleep. So you'd have to find a way of making Messages restart after sleep, and... We're back to square one!

You can turn off automatic termination via a defaults write command, but I don't like hacking away OS X's features just to make one particular thing work.



[ Reply to This | # ]