PixelPaul Posted July 30, 2013 Share Posted July 30, 2013 (edited) Hey, i've made a workflow for cleaning your RAM. Type in 'clean ram' or 'purge' and press enter. https://www.dropbox.com/s/a8drgdbwypygmmk/Clean%20RAM.alfredworkflow Hope you find it as usefull as i do. Edited: Terminal command works in background. When RAM is cleaned, a notification pops up. Edited August 2, 2013 by PixelPaul Link to comment
vitor Posted July 30, 2013 Share Posted July 30, 2013 You should exchange Terminal Command for Run Script — there’s no reason a terminal should need to open for this. Link to comment
Southgirl Posted July 31, 2013 Share Posted July 31, 2013 As no notification pops up, is there any other way to tell if this is actually working? Link to comment
getthething Posted December 14, 2013 Share Posted December 14, 2013 Have all the clean RAM workflows stopped working for anyone else since upgrading to Mavericks? Link to comment
Tyler Eich Posted December 14, 2013 Share Posted December 14, 2013 (edited) Have all the clean RAM workflows stopped working for anyone else since upgrading to Mavericks? In Mavericks, the purge command requires super user privileges. So if a workflow uses purge instead of sudo purge, the script will fail. However, using sudo purge will not work directly because sudo cannot prompt you for your password from a 'Run Script' object. One workaround I found is to change the 'Run Script' language to '/usr/bin/osascript'. Then, use do shell script "purge" with administrator privileges in the text area. It will prompt for your password and the command will execute once provided. OS X Daily helped me solve this issue. The linked post makes a few notes about Mavericks' memory management, as well. Edited December 14, 2013 by Tyler Eich Link to comment
getthething Posted December 15, 2013 Share Posted December 15, 2013 In Mavericks, the purge command requires super user privileges. So if a workflow uses purge instead of sudo purge, the script will fail. However, using sudo purge will not work directly because sudo cannot prompt you for your password from a 'Run Script' object. One workaround I found is to change the 'Run Script' language to '/usr/bin/osascript'. Then, use do shell script "purge" with administrator privileges in the text area. It will prompt for your password and the command will execute once provided. OS X Daily helped me solve this issue. The linked post makes a few notes about Mavericks' memory management, as well. Very thorough. Much appreciated. Thank you. Tyler Eich 1 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