AGBear Posted November 10, 2013 Share Posted November 10, 2013 Hi everyone, I had a couple of great Alfred workflows that worked fine under 10.8, but no longer work after upgrading to Mavericks. I'm on Alfred 2.1 and have enabled accessibility access for Alfred. The malfunctioning workflows are: - Restart to Windows: Simple Applescript that runs do shell script "bless -mount /Volumes/BOOTCAMP/ -legacy -setBoot -nextonly; shutdown -r now" with administrator privileges It asks for a password and reboots, but it boots back to OS X. Works fine as a bash script using sudo, but unfortunately you can't run a sudo bash script from Alfred (potential feature request!) - Markdown help: Applescript by MacGeeky that parses browser input/selected text and wraps it in Markdown URL tags. Too large to paste here, but more information is at http://www.alfredforum.com/topic/2745-markdown-help-insert-formatted-text-links-from-browser-and-images/ Any suggestions? Other Applescript and Python workflows work fine... Cheers, Alan Link to comment
AGBear Posted November 11, 2013 Author Share Posted November 11, 2013 Further investigations: I modified the Windows script to use NSAppleScript and it now works. The Markdown script isn't fixable through this method, unfortunately. Link to comment
rice.shawn Posted November 11, 2013 Share Posted November 11, 2013 If you do want to use sudo for an Alfred workflow, you need to edit your sudoers file to allow you (your regular user account that you use Alfred from) to use that command without a password. Then it works. I wrote a workflow that I need to get around to posting that lets you easily add to your sudoers file, although editing this file should be used with extreme caution and only when utterly necessary. Link to comment
AGBear Posted November 14, 2013 Author Share Posted November 14, 2013 The Markdown script doesn't rely on sudo, just the reboot to Windows one (which works when it runs through Alfred's main thread). I've seen people suggesting edits to sudoers to allow certain scripts through, which is a security nightmare. 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