Page 1 of 1
AppleScript help
Posted: Thu May 26, 2005 10:11 pm
by dschep
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.
Re: AppleScript help
Posted: Thu May 26, 2005 11:51 pm
by zaudragon
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…
Posted: Fri May 27, 2005 12:11 am
by dschep
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
Posted: Fri May 27, 2005 12:14 am
by zaudragon
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.
Posted: Fri May 27, 2005 6:39 am
by cbarrett
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*
Posted: Fri May 27, 2005 11:14 am
by Reikon
Code: Select all
tell application "adium"
disconnect all
end tell
Works.