deanishe Posted June 18, 2014 Share Posted June 18, 2014 (edited) View and change your network location from Alfred. InstallationDownload the workflow from Packal or GitHub.Usage 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.LicenceThis workflow is released under the MIT Licence. Edited June 18, 2014 by deanishe 40-02, paulw, bk161124 and 1 other 4 Link to comment
mase Posted November 19, 2014 Share Posted November 19, 2014 @deanishe Wonderful workflow. Exactly what I was needing. Thank you!! Link to comment
bentana Posted March 30, 2018 Share Posted March 30, 2018 @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. Thanks! deanishe 1 Link to comment
deanishe Posted March 31, 2018 Author Share Posted March 31, 2018 13 hours ago, bentana said: it doesn't throw up that annoying password prompt Superb! Thanks very much for the tip. Check out version 2.0. BTW, have you tried ControlPlane? It can automatically switch network locations (and lots of other stuff) based on which WiFi is nearby. Very handy if you switch networks a lot. Link to comment
bob113 Posted March 21, 2022 Share Posted March 21, 2022 @deanishe looks like macos 12.3 has killed your very useful workflow. I run it now in debug and get: [13:58:07.700] Logging Started... [13:58:43.347] Network Location[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.9298)] Queuing argument '' [13:58:43.361] Network Location[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.9298....)] Script with argv '' finished [13:58:43.364] ERROR: Network Location[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.929...)] Code 127: /Users/xxxxxx/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/F98...:1: command not found: python I have python 3 (via Anaconda) on my machine, and the command "python" is defined. Maybe a python 2 versus 3 issue? Do you have time to fix it? Link to comment
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