dschep
Harmless
Posts: 2 Joined: Thu May 26, 2005 8:50 pm
Post
by dschep » Thu May 26, 2005 10:11 pm
I was trying to make a very simple script (two actually) for use with quicksilver to connect or disconnect all my accounts.
This is the code i tried to use to disconnect my accounts:
Code: Select all
tell application "Adium"
disconnect
end tell
This should work based of off what I read in the AppleScript dictionary for Adium, but when I run it nothing happens.
I guess i should include that the even log contains this after i run the script
Code: Select all
tell application "Adium"
disconnect current application
end tell
Btw the behavior when running with connect as opposed to disconnect it does nothing as well with practically the same event log.
zaudragon
Growl Team
Posts: 1852 Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:
Post
by zaudragon » Thu May 26, 2005 11:51 pm
dschep wrote: I was trying to make a very simple script (two actually) for use with quicksilver to connect or disconnect all my accounts.
This is the code i tried to use to disconnect my accounts:
Code: Select all
tell application "Adium"
disconnect
end tell
This should work based of off what I read in the AppleScript dictionary for Adium, but when I run it nothing happens.
I guess i should include that the even log contains this after i run the script
Code: Select all
tell application "Adium"
disconnect current application
end tell
Btw the behavior when running with connect as opposed to disconnect it does nothing as well with practically the same event log.
Maybe using "disconnect every account" would work…
dschep
Harmless
Posts: 2 Joined: Thu May 26, 2005 8:50 pm
Post
by dschep » Fri May 27, 2005 12:11 am
Thanks alot, it works. I didnt know i had to say every account be cause the dictionary entry reads as such:
disconnect v : Disconnect an account, or all accounts if no account is specified.
disconnect account : an account
zaudragon
Growl Team
Posts: 1852 Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:
Post
by zaudragon » Fri May 27, 2005 12:14 am
dschep wrote: Thanks alot, it works. I didnt know i had to say every account be cause the dictionary entry reads as such:
disconnect v : Disconnect an account, or all accounts if no account is specified.
disconnect account : an account
Well the dictionary isn't full… and the AppleScript support will hopefully become better in the future.
cbarrett
Adium Team
Posts: 389 Joined: Thu Dec 02, 2004 2:30 am
Location: Kailua, HI
Contact:
Post
by cbarrett » Fri May 27, 2005 6:39 am
If you could file a ticket on this ( see
http://trac.adiumx.com/wiki/ReportingBugs ), that'd be awesome. Either the dictionary should be changed, or the code should be fixed. Documentation should not lie! *glances in Apple's direction menacingly*
Reikon
Post
by Reikon » Fri May 27, 2005 11:14 am
Code: Select all
tell application "adium"
disconnect all
end tell
Works.