I maintain the Quicksilver plug-in and some features can be added if I could query the state of a connection, but I can’t seem to get it to work. (I know very little about AppleScript.)
When I do something like this:
- Code: Select all
tell application "Viscosity"
set someVar to the state of "My Connection"
end tell
The result is:
error "Can’t get state of \"My Connection\"." number -1728 from «class stat» of "My Connection”
I know the name of the connection is valid because I have no problem with:
- Code: Select all
tell application "Viscosity”
disconnect "My Connection"
end tell
Am I doing this right?






