Applescript to connect a single account
Applescript to connect a single account
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 :-)
- zaudragon
- Growl Team
- Posts: 1852
- Joined: Sat Dec 04, 2004 5:05 am
- Location: Kensington, CA, USA
- Contact:
Re: Applescript to connect a single account
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 tell- evands
- Cocoaforge Admin
- Posts: 3152
- Joined: Thu Dec 02, 2004 10:55 pm
- Location: Decatur, GA
- Contact:
Re: Applescript to connect a single account
Huh?ScottHaneda wrote:the menu in Adium for doing so connects the wrong one, I aim to fix this :-)
Re: Applescript to connect a single account
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
- evands
- Cocoaforge Admin
- Posts: 3152
- Joined: Thu Dec 02, 2004 10:55 pm
- Location: Decatur, GA
- Contact:
Re: Applescript to connect a single account
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
a) Choose the account in the File menu, which will connect it and restore it to the previous status state it was in
b) Choose the account in the Status menu, which will connect it and restore it to the previous status state it was in
c) Choose a status in the submenu for the account in the Status menu, which will connect it and set it to the selected status.
- evands
- Cocoaforge Admin
- Posts: 3152
- Joined: Thu Dec 02, 2004 10:55 pm
- Location: Decatur, GA
- Contact:
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
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
- evands
- Cocoaforge Admin
- Posts: 3152
- Joined: Thu Dec 02, 2004 10:55 pm
- Location: Decatur, GA
- Contact:
My off-the-cuff applescript is bad.
Tested it that time, it does work 
Code: Select all
tell application "Adium"
connect the first account whose UID is "myAccountName"
end tell