ok have broght mac work easier me work on. company has fail on internet , bat file switch between 2 service providers. default in router t1 line (which painfully slow) created switching dsl problem being pc not mac. can please me convert applescript , preferably point me in right direction of making clickable instead of having type terminal in advance 
@echo off
goto menu
:menu
echo.
echo 1 route through dsl
echo 2 route through t1
echo 3 route print
echo 4 quit
echo.
:choice
set /p c=[1,2,3,4]?
if "%c%"=="4" goto quit
if "%c%"=="3" goto routeprint
if "%c%"=="2" goto routet1
if "%c%"=="1" goto routedsl
goto choice
:routeprint
echo route print
route print
goto menu
:routedsl
echo route delete 0.0.0.0
route delete 0.0.0.0
echo route add 0.0.0.0 mask 0.0.0.0 172.20.1.4
route add 0.0.0.0 mask 0.0.0.0 172.20.1.4
goto menu
:routecbeyond
echo route delete 0.0.0.0
route delete 0.0.0.0
echo route add 0.0.0.0 mask 0.0.0.0 172.20.1.254
route add 0.0.0.0 mask 0.0.0.0 172.20.1.254
goto menu
:quit
exit
all change default route in network settings. hand. 1 called 'router'.
![[img]](proxy.php?image=http%3a%2f%2fi.imgur.com%2faxoak.png&hash=908a7adb889e91e0c4a6f020cab70d87)
shows how access network preferences applescript, should started
http://www.macosxautomation.com/applescript/features/system-prefs.html
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment