G'day everyone.

Just started using Viscosity and I was hoping someone could help me with a couple of things. I'm not familiar with writing scripts so could someone offer a solution/advice on how to do the following:

1/ When the connection disconnects:
- utorrent closed (or at least all transfers stopped)
- wifi connection turned off
- wifi connection turned on

2/ When the connection connects:
- utorrent opens (or all transfers start)

If anyone can offer assistance on how to create these functions I would greatly appreciate it.

Thanks, Peter