Temikus Posted May 2, 2013 Posted May 2, 2013 (edited) Nloc - network location switcher for Alfred I use the OS X `network locations` feature quite often. It allows me to comfortably switch between networks, without setting the proxies, DNS and other parameters every time. So I wrote this workflow to do it even faster. Usage: nloc network_location_name Workflow supports autocompletion of known network locations: Download: Up-to-date workflow bundles can be downloaded here. NOTE: Due to changes in security policy on OS X 10.8, system _will_ ask you for your password after executing the workflow. OS X 10.7 system won't ask for your password since it doesn't require the `networksetup` command to be executed with super user privileges. Edited May 2, 2013 by Temikus _mk_ and twinpeaks 2
rice.shawn Posted September 26, 2013 Posted September 26, 2013 For 10.8, there is a workaround. If you put in the sudo command before the `networksetup` command, then it can work seamlessly without needing a password as long as you follow the instructions that I pasted below (it's part of a commented bash script I wrote). # If you want to avoid putting in a password, then make sure that the # sudo variable below is uncommented. AND add the following line # to /etc/sudoers (sudo nano /etc/sudoers) -- type in your pword at the prompt # USER ALL=NOPASSWD:/usr/sbin/networksetup # "USER" needs to be replaced with your username (or the username of anyone # who uses Alfred2 and this workflow.) jibbe 1
rice.shawn Posted November 23, 2013 Posted November 23, 2013 In reference to my previous post: I've uploaded a workflow that will take care of your sudoers file syntax for you, but, again, avoid it at all costs. Here's the post: http://www.alfredforum.com/topic/3519-sudoers-workflow/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now