Jump to content

List, filter and activate network locations from within Alfred

Recommended Posts

View and change your network location from Alfred.


Download the workflow from Packal or GitHub.


  • netloc [<query>] — Show list of network locations filtered by <query> if one is specified
  • — Activate selected network location
  • ⌘+↩ — Open Network Preferences

Note: You will probably be asked to enter your password to change the network location.

This workflow is released under the MIT Licence.

Edited by deanishe
Link to comment
  • 5 months later...
  • 3 years later...

@deanishe This is very useful as I'm always changing between network locations.  I noticed that you're using the networksetup command to change locations.  I've found that if you use the "scselect <location name>" command instead of "networksetup -switchtolocation <location name>" to change locations, it doesn't throw up that annoying password prompt.  Perhaps consider modifying your python script to use the "scselect" command to change locations.



Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...