Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Applescript/Automator turn off internet
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="brandonjp" data-source="post: 1451201" data-attributes="member: 42913"><p>FYI, you can also enable/disable the airport/Wi-fi without sudo using:</p><p></p><p>[CODE]networksetup -setairportpower en0 off[/CODE]</p><p>or </p><p>[CODE]networksetup -setairportpower en0 on[/CODE]</p><p>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).</p><p></p><p>* 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:</p><p>[CODE]networksetup -listallhardwareports[/CODE]</p><p></p><p>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:</p><p><a href="http://macstuff.beachdogs.org/blog/?p=44" target="_blank">http://macstuff.beachdogs.org/blog/?p=44</a></p></blockquote><p></p>
[QUOTE="brandonjp, post: 1451201, member: 42913"] FYI, you can also enable/disable the airport/Wi-fi without sudo using: [CODE]networksetup -setairportpower en0 off[/CODE] or [CODE]networksetup -setairportpower en0 on[/CODE] 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: [CODE]networksetup -listallhardwareports[/CODE] 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: [url]http://macstuff.beachdogs.org/blog/?p=44[/url] [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Applescript/Automator turn off internet
Top