Getting connections with Scripting Bridge

Got a problem with Viscosity or need help? Ask here!


Posts: 4
Joined: Wed Jan 27, 2010 4:05 pm

Post by Skurfer » Tue Nov 06, 2012 3:21 am
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:
Code: Select all
tell application "Viscosity" to get state of (connections where name is "foo")
Any ideas?

(I'm trying to check the state of a connection so I can display either a "connect" or "disconnect" action by default.)


Mac OS X 10.8.2, Viscosity 1.4.2


User avatar
Posts: 2103
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Nov 15, 2012 4:00 pm
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.

James Bekkema
Viscosity Developer

2 posts Page 1 of 1