MacWorks Posted January 28, 2022 Share Posted January 28, 2022 Howdy, I want to run and create a Workflow to restart my Mac with having to enter the password? How do I accomplish this with Alfred: sudo shutdown -r now Thank you Link to comment
MacWorks Posted January 28, 2022 Author Share Posted January 28, 2022 Got it - $echo <password> | sudo -S <command> Link to comment
vitor Posted January 28, 2022 Share Posted January 28, 2022 Don’t make your password available in plaintext for every app to see. You can restart without a password by using an AppleScript Run Script Action with tell application "System Events" to restart, or better yet just use a System Commands Action. 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