Abstract said:
So if I copy and paste that into (where?), then it would do it without going to Disk Utility? Would it repair permissions once a day/week/month automatically, because that wouldn't be what I want.
Anyway, I repair disk permissions every time I install an application, so I rarely ever do.
Open up Applications->Utilities->Terminal. This will open a terminal in your home account.
Type 'touch maint' [the part between the single quotes] at the prompt, and hit return (don't mean to offend if I'm over-simplifying for you - but maybe someone else will read this and need the details). The 'maint' part is the name of the script you'll be creating - you can call it whatever you want; I just call it 'maint'.
Now, in Finder, navigate to your home directory, find the file you just created ('maint' inthe above example) and right (or control) click on it to "Open With..." TextEdit. In TextEdit, cut the script above and paste it into the file.
Since each command is preceded by an echo statement saying what its going to do, you can feel free to cut out stuff you don't want. In other words, if all you want to do is repair permissions, just leave in that part - although it's as easy to use Disk Utility as it is to run a one-line script. Of course, if you Google 'cron OS X' you'll find tips on how to alter your cron table (which runs stuff automatically at specified times) and, say, repair permissions once a day by running this script you just created.
Then save the file from TextEdit.
Back in the terminal window, type in 'chmod u=rwx maint' and hit return. Of course, replace 'maint' with your name if you've called it something else. This command allows you to execute the script (run it).
To run the script, simply open Terminal at any point, go to your home directory (which is where Terminal opens to by default, so you only need to go there if you've gone elsewhere in a Terminal window) and type './maint' and hit return.
Note: if you update the pre-binding, it's a
very good idea to restart the system afterwards.