Skip to main content

Running AppleScript application on tunnel start

3 replies [Last post]
mturk
Offline
Joined: 02/20/2010

I have a simple Applescript I saved as an application:
tell application "Finder"
open location "vnc://localhost:5901"
end tell

I set this to start after a tunnel in Meerkat forwards VNC to 5901. The applescript does not seem to be running at all.

Any ideas where I might look for diagnostic output? This works when I start the tunnel and then start the Applescript manually.

0
Justin
Justin's picture
Offline
Joined: 05/28/2008
If I'm understanding you

If I'm understanding you correctly, you want this script to run after bringing a tunnel up in Meerkat? Currently, Meerkat only supports the other way around -- bringing up a tunnel in response to an application launching.

I just wrote you an email regarding another support issue that you had that highlights what you are looking for as a solution as well. So I will be looking into this feature set in Meerkat.

Pyrofallout
Offline
Joined: 07/21/2010
I too would like this

I too would like this feature, and even the ability to launch script on tunnel close as well, or at least a feature that automatically sets the state of the SOCKS proxy on the network interfaces when the tunnel goes up or down. I am trying Meerkat out at the moment, I have been using the free SSHTunnel for a while now, and it will automatically set the proxy and port on both Ethernet and Airport automatically on connect of dynamic tunnel. Basically at the time being, when using Meerkat, after connecting the tunnel I run a applescript to set the proxy host and port and enable it, then when I close the tunnel, I have to run another script to turn the proxies off again.

nxtwrld
Offline
Joined: 03/31/2011
running a script or app on established connection

+1 here. Being able to run a script automatically when connected would be a killer feature.

Want to join the forums? Create an account or login.