sudo diskutil repairPermissions /By combining this with AppleScript, you can easily repair permissions from Script menu or Youpi Key or Quickeys without having to open Disk Utility (which, by the way, isn't scriptable.) To open a new window and run the command, use this AppleScript (you'll need to enter your admin password afterwards):
tell application "Terminal"To run it silently in the background, use this AppleScript:
do script "sudo diskutil repairPermissions /"
end tell
do shell script "sudo diskutil repairPermissions /" ¬Replace "yourAdminPassword" with your admin password. The drawback using this silent command is you wouldn't be able to see the log. I'm wondering if it's possible to get the log from terminal, trigger TextEdit to make a new document with the log and then save it somewhere. Any suggestion?
password "yourAdminPassword" with administrator privileges
[Editor's note: If you're going to create an AppleScript with your admin password in it, make sure you put it somewhere safe from potential prying eyes...]

