New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Applescript/Automator turn off internet

Post Reply New Thread Subscribe

Thread Tools

bassguy86's Avatar
Member Since: Feb 07, 2010
Posts: 58
bassguy86 is on a distinguished road
Mac Specs: MacBook Black 2.4 GHz Intel Core 2 Duo, 4GB 667 MHz DDR2 SDRAM 320gb 7200rpm HDD Snow Leopard

bassguy86 is offline
I have satellite internet due to where I live. I have unlimited download/upload from 1-6am and am backing up my mac to a cloud server. I want to set my laptop to turn off wifi at 6am so I do not use up my limit (250mb/day).
Is there an applescript or automater I can use for this? thanks for any help.

I know I can just set the computer to shut down then but have had firefox and other programs at times lock up (not in a long time though) and stop the computer from shutting down.

Check out some of my Design work.
QUOTE Thanks

MacsWork's Avatar
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,159
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
This hint will show you how to disable/enable the Airport of your Mac.
Enable and disable Airport from the command line - Mac OS X Hints

Then use an Automator action to run a shell script with those commands, and then schedule those Automator Applications with iCal to run at 6:00AM and maybe 6:15AM to re-enable.

The problem you will face is running sudo commands unattended. Which is not a good practice.

This thread will go over some methods (with obvious security concerns) as well as methods to limit damage.
Shell script sudo without password prompt under Darwin? [Archive] - The macosxhints Forums
QUOTE Thanks

Member Since: Dec 04, 2007
Posts: 3
brandonjp is on a distinguished road

brandonjp is offline
FYI, you can also enable/disable the airport/Wi-fi without sudo using:

networksetup -setairportpower en0 off
networksetup -setairportpower en0 on
I put it in an Automator workflow > Run shell script. Add other stuff to the workflow if needed, then save as Application or Service (to use a hotkey).

* Note: You might need to change the "en0" part to match whichever network device you're wanting to affect. Get a list of all devices with:
networksetup -listallhardwareports
I'm using OS X Mountain Lion 10.8.2 - The commands might be slightly different on other OS versions. This page has some info:
QUOTE Thanks

Post Reply New Thread Subscribe

« Security for imac | Mountain Lion Dowload Stopped at 1/2 way »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
iPad and Airport Extreme (Connected but No Internet) kilohurtz Internet, Networking, and Wireless 6 05-30-2010 03:02 PM
Can't connect to internet (Comcast) dsilveri Internet, Networking, and Wireless 0 08-24-2008 12:55 AM
[NEWS] Death of Free Internet is Imminent, Canada Will Become Test Case Mathiau Schweb's Lounge 10 07-27-2008 03:10 PM
Internet Problems - using Wifi instead of my cable antgonz Internet, Networking, and Wireless 0 06-13-2008 03:54 AM
Network Advice, internet & cable (Los Angeles) popgirletc Switcher Hangout 2 02-20-2007 06:21 PM

All times are GMT -4. The time now is 08:38 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?