

And, if you Caffeinate your machine, it keeps it awake, but you have to tell it to do specific things to suit our purposes using hooks or modifiers for this.

I discovered this great little built-in utility called Caffeinate.

And the worst thing for me is when I’m on location doing a location recording, you have your system up and running, you run over to go take care of something, it takes just long enough that you come back, and the screen has locked, and now you can’t get in without having to type your password, then you can make that adjustment that you were trying to make, and it goes on and on and on like that all day long. I don’t know about you, but no matter how I set my energy saver power settings to never sleep, never lock the screen, and all that, it still does. Now we have ProTools running with priority. Unless it gives you an error, it has done it. If you are not an admin on your Mac, this won’t work. Now, when we hit return it’s going to ask for your password. Give it as much CPU power as it asks for, and if something else needs to get interrupted, that’s fine.”
#Keyboard maestro execute in interactive shell pro#
Remember, -20 is basically saying, “Make Pro Tools as greedy as possible. We then tell it the new nice setting, which is -20 in our case, and then which ProcessID is getting reniced, which is 5832 in my case. Then renice, which tells it to reset the nice setting of a specific application. So we’re going to type: sudo, which is super user do. We have to use the sudo command or “super user do,” which is basically a way of running a terminal command as the root user, which is a step above an admin user in macOS. And we’re going to tell it to “renice” Pro Tools. So now what we want to do is launch terminal through the search. That changes every time it launches, but for right now, and that’s how the macOS keeps track of what’s running. Here’s Pro Tools, and right now my process ID is 5832. And you go up to the search bar, and type in Pro Tools. This shows you everything that’s running on your Mac. With Pro Tools running, you bring up your search bar, and type in “activity monitor”, and launch that. So the way we do that is we want to change the “nice” rating on Pro Tools with a terminal command known as “re-nice.” But before we do that you need to know the process ID of Pro Tools, and it’s really easy to find. And, when we’re dealing with Pro Tools, I like Pro Tools to be that kid on the playground that takes everything and won’t share. Now, “nice” settings can be anywhere from 20, which is extremely willing to give up resources to other applications, to -20, the equivalent of the kid who takes everything on the playground and doesn’t share with anybody. So they are all on equal footing in the eyes of my Mac.

Every app launches with the same “nice” setting, which is zero. That’s n-i-c-e, nice, as in “plays nice with others”. And when applications launch in macOS, they’re all given what’s called a “nice” score. And I want my system to recognise Pro Tools as the most important thing running on my system. Pro Tools, as we know, is pretty CPU intensive. Hey, this is Steve DeMott with Production Expert, and I’m going to go over a couple of macOS terminal commands that I use all the time when I’m working, and I really need to make sure the OS doesn’t get in my way.
