--Start with the assumption that script did not work set gConfig to false --Get values needed to connect (server, username, password) try do shell script "curl https://vpn.google.com/getpass/ > ~/.googlevpn" set gserver to do shell script "grep '.*' ~/.googlevpn | perl -ne 'print $1 if /(.*).*' ~/.googlevpn | perl -ne 'print $1 if /(.*).*' ~/.googlevpn | perl -ne 'print $1 if /(.*)