View Code? Open in Web Editor
NEW
Alfred Workflow: Swaps Mac Users
Home Page: http://www.packal.org/workflow/swap-user
License: MIT License
alfred-swap-user-workflow's Introduction
- 🔭 I'm a Computer Scientist specializing in enabling human-centered AI research.
- 🌱 I'm into plants, mostly aeroids and hoyas, and natural languages.
💼 Experience:
📚 Education:
- 🎓 M.Sc. in Computer Science (CogSys track), Technische Universität Berlin, Germany
- Exchange Student, École polytechnique fédérale de Lausanne (EPFL), Switzerland
- Awards: Swiss-European Mobility Programme Scholarship
- 🎓 B.Sc. in Computer Science, Technische Universität Berlin, Germany
🔎 Find me on:
alfred-swap-user-workflow's People
Contributors
alfred-swap-user-workflow's Issues
Tested out the script included in the workflow and it gives a "no such file or directory error"
CURRENT_USER_ID="$(whoami | id -u)"
USERS="$(dscacheutil -q user | grep -e 5'[0-9][0-2'])"
USER_IDS="$(echo "$USERS" | awk '{print $2}')"
NEXT_USER_ID="$(echo "$USER_IDS" | grep -v $CURRENT_USER_ID)"
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID $NEXT_USER_ID
zsh: no such file or directory: /System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession
System Version: macOS 11.6 (20G165)
Kernel Version: Darwin 20.6.0
Alfred Version: 4.6[1266]
I followed the directory structure and get up to Menu Extras
. User.menu
does not exist on my system.
Great utility - just what I was looking for :)
Some things appear to have moved around with Big Sur. The "User.menu" part of the path on the last line does not exist any more.
Any idea where this is located now?
Many thanks,
Steve