New Viscosity plug-in

19 views
Skip to first unread message

Rob McBroom

unread,
Jan 26, 2010, 11:57:01 PM1/26/10
to blacktree-...@googlegroups.com
I’ve wanted a Quicksilver plug-in for Viscosity (a great VPN client) ever since I started using it.

Now I know how to make plug-ins so… you can probably guess the rest.

http://github.com/skurfer/Viscosity.qsplugin/downloads

--
Rob McBroom
<http://www.skurfer.com/>

The magnitude of a problem does not affect its ownership.

Luke Daley

unread,
Jan 27, 2010, 12:33:13 AM1/27/10
to blacktree-...@googlegroups.com
Nice one, thanks.

nontoppo

unread,
Jan 30, 2010, 1:03:53 PM1/30/10
to Blacktree: Quicksilver
Whoa — this is wonderful — thank you very much!!!

pendolino

unread,
Jan 31, 2010, 9:00:50 AM1/31/10
to Blacktree: Quicksilver
nice and i can confirm it works but how about a disconnect/connect
action without selecting a specific server? the disconnect could just
apply to whatever connection is on and the connect, if without a
specific server, would connect to the last connection used.

i have many servers on my viscosity list and the menu bar icon does
not show me what's currently connected unless i click on it.

Rob McBroom

unread,
Jan 31, 2010, 1:20:40 PM1/31/10
to blacktree-...@googlegroups.com
On Jan 31, 2010, at 9:00 AM, pendolino wrote:

> nice and i can confirm it works but how about a disconnect/connect
> action without selecting a specific server? the disconnect could just
> apply to whatever connection is on and the connect, if without a
> specific server, would connect to the last connection used.

Oh, believe me, I’ve thought about this. I just haven’t discovered a reliable way to query the application to find out it’s current state. It’s AppleScript library provides only “connect” and “disconnect” and they require a specific connection name.

The last connection used thing might be possible, so long as it was “used” via Quicksilver because again, I’m not sure how you would get such information directly from Viscosity.

If anyone has suggestions/experience related to getting such information, I’m listening.

--
Rob McBroom
<http://www.skurfer.com/>

It's not that I think guns, drugs, prostitution, swimming, eating and reading should be legal. It's just that no one on Earth has the authority to make them illegal.

pendolino

unread,
Feb 5, 2010, 11:36:14 AM2/5/10
to Blacktree: Quicksilver
i suspected there must have been a snag. thanks rob

Jon Stovell (a.k.a. Sesquipedalian)

unread,
Feb 6, 2010, 1:44:26 AM2/6/10
to Blacktree: Quicksilver
Does Viscosity keep track of its recent connections in a plist file
somewhere? If so, you could read the plist to find that information.
Since you are using AppleScript, this would be trivial to do by
getting System Events to retrieve the value of the relevant property
list item of the plist.

Rob McBroom

unread,
Feb 6, 2010, 9:09:21 PM2/6/10
to blacktree-...@googlegroups.com
On Feb 6, 2010, at 1:44 AM, Jon Stovell (a.k.a. Sesquipedalian) wrote:

> Does Viscosity keep track of its recent connections in a plist file
> somewhere?

I can’t find such a plist, and since the application itself provides no UI for recent connections, my guess is that it doesn’t track them.

There is `~/Library/Caches/com.viscosityvpn.Viscosity/Cache.db`, which may be of use, but I don’t know what format that’s in or how safe it is to mess with. I’m guessing it’s SQLITE3 and that read-only queries wouldn’t hurt anything, but I haven’t tried to verify either of those assumptions.

pendolino

unread,
May 28, 2011, 3:16:54 AM5/28/11
to blacktree-...@googlegroups.com
hows it going with this plugin? i've recently restarted using it. pretty useful although that inability to get to recent connections quickly would have been nice to have.

Rob McBroom

unread,
May 28, 2011, 4:17:53 PM5/28/11
to blacktree-...@googlegroups.com
On May 28, 2011, at 3:16 AM, pendolino wrote:

> hows it going with this plugin? i've recently restarted using it. pretty useful although that inability to get to recent connections quickly would have been nice to have.


It’s going well. I mean, it’s complete as far as I’m concerned. :) Like I said before, Viscosity has no concept of recent connections so there’s no way the plug-in could access them.

Reply all
Reply to author
Forward
0 new messages