Jump to content

ppp-reconnect script


chris2k
 Share

2 posts in this topic

Recommended Posts

I was searching for a solution to get an automated pppoe reconnect script, but only found one for Tiger.

Since "Internet Connect.app" isn't in Leopard anymore, I wrote this. Maybe someone of you needs this thing, so I am posting it.

 

tell application "System Events"

tell network preferences

disconnect service "profile-name"

delay 5

connect service "profile-name"

end tell

end tell

 

Set "profile-name" to your assigned name that you added in the network preferences. You may edit "delay 5" too.

Note: This is my first applescript and I got no skills with it at all. If you can enhance it, then post a better version.

Link to comment
Share on other sites

  • 8 months later...
 Share

×
×
  • Create New...