Skip to content
Getting connections with Scripting Bridge
Got a problem with Viscosity or need help? Ask here!
Hello. I'm updating the Quicksilver plug-in for Viscosity to use Scripting Bridge instead of AppleScript. Everything seems to be straightforward and work great, with one exception: - [ViscosityApplication connections] seems to always return an empty list.
It seems to work fine in AppleScript with something like:
(I'm trying to check the state of a connection so I can display either a "connect" or "disconnect" action by default.)
Thanks.
Mac OS X 10.8.2, Viscosity 1.4.2
It seems to work fine in AppleScript with something like:
Code: Select all
Any ideas?tell application "Viscosity" to get state of (connections where name is "foo")
(I'm trying to check the state of a connection so I can display either a "connect" or "disconnect" action by default.)
Thanks.
Mac OS X 10.8.2, Viscosity 1.4.2
Hi Skurfer,
My apologies for the delay replying to your post. Hopefully you've sorted it all out by now, but if you haven't please shoot an email to our support email address. While I haven't had any experience working with the scripting bridge in such a fashion (which is a bit odd as I spend most of my time in PyObjC!), I'm happy to help get it working where possible, or make any changes that need to be made to Viscosity.
Cheers,
James
My apologies for the delay replying to your post. Hopefully you've sorted it all out by now, but if you haven't please shoot an email to our support email address. While I haven't had any experience working with the scripting bridge in such a fashion (which is a bit odd as I spend most of my time in PyObjC!), I'm happy to help get it working where possible, or make any changes that need to be made to Viscosity.
Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts
Page 1 of 1