Here's an AppleScript I use to run a Time Machine backup, and then shut down the machine. As is the case with most shut down scripts, I suppose it would be a good idea to quit whatever programs you know of that are open before running the
script.
[robg adds: I haven't tested this one, beyond making sure it compiled in Script Editor. After pasting into Script Editor, save it as a script then use your favorite method of making it easier to access -- toolbar, sidebar, dock, or hot keys via a third-party app.]
•
[20,227 views]

