Applescript to connect a single account
Posted: Wed Jun 08, 2005 4:40 am
How can I use AppleScript to connect a particular account, the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
ScottHaneda wrote:How can I use AppleScript to connect a particular account, the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
Code: Select all
tell application "Adium"
connect account ""
end tellHuh?ScottHaneda wrote:the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
In the Adium menu in the Finder bar or the dock, there is "Available" and it will sometimes connect to one of my two accounts, and sometimes to both. Generally, it connects to the second account, which I almost never use, so it is wrong.evands wrote:Huh?ScottHaneda wrote:the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
It reconnects whichever accounts were online when you last quit, or, if you haven't just launched Adium, it reconnects the last connected account(s). Why not do one of the following:ScottHaneda wrote:In the Adium menu in the Finder bar or the dock, there is "Available" and it will sometimes connect to one of my two accounts, and sometimes to both. Generally, it connects to the second account, which I almost never use, so it is wrong.evands wrote:Huh?ScottHaneda wrote:the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
I explained it as best as I can here:
http://trac.adiumx.com/ticket/501
I see. What aboutScottHaneda wrote:Basically, your suggestions all work, but they are just too much mousing around for me. I want a simple applescript I can bind to a key to do what I want, and that connection script does not seem to work, any ideas?
Expected “given”, “with”, “without”, other parameter name, etc. but found “.evands wrote:I see. What aboutScottHaneda wrote:Basically, your suggestions all work, but they are just too much mousing around for me. I want a simple applescript I can bind to a key to do what I want, and that connection script does not seem to work, any ideas?
tell application "Adium"
connect the first account with UID "myAccountName"
end tell
Code: Select all
tell application "Adium"
connect the first account whose UID is "myAccountName"
end tell