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


Click here to return to the 'Switch .Mac/AIM account between Adium and iChat' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Switch .Mac/AIM account between Adium and iChat
Authored by: geppo1982 on Mar 10, '06 01:43:04AM
Great script, thanks!

I added some lines of code to also quit the app you are leaving:

tell application "Adium"
	set adiumAccount to ID of first account whose serviceID is "AIM"
	set adiumOnline to online of account id adiumAccount
end tell

if adiumOnline then
	tell application "Adium"
		if (count (accounts)) = 1 then
			quit
		else
			disconnect (account id adiumAccount)
		end if
	end tell
	delay 1
	tell application "iChat" to log in service "AIM"
else
	tell application "iChat"
		log out service "AIM"
		quit
	end tell
	delay 1
	tell application "Adium" to connect (account id adiumAccount)
end if

Sorry for my bad English.

[ Reply to This | # ]