Pause/Resume Apps for Better Performance
I’ve taken to pausing PS:
killall -SIGSTOP "Adobe Photoshop CS5.1"
…otherwise it just idles at 10% CPU in the bg. (
SIGCONT
to unfreeze).
With Keyboard Maestro 5 you can set up two macros. Note how AppContinue re-uses AppPause’s pauseApp
variable as default value:
AppPause:
- Prompt for user input:
- Title: Pause
- Prompt: Which app do you want to pause?
- Variables:
pauseApp
- Default Value: none (Set to a default app. In Brichter’s case “
Adobe Photoshop CS5.1
”) - Buttons: Default (OK and Cancel)
- Execute shell script:
- Execute text script
- display results briefly
killall -SIGSTOP "$KMVAR_pauseApp"
- Growl:
- Title: Paused
- Comment:
%Variable%pauseApp%
has been paused.
AppContinue:
- Prompt for user input:
- Title: Continue
- Prompt: Which app do you want to continue?
- Variables:
continueApp
- Default Value:
%Variable%pauseApp%
- Buttons: Default (OK and Cancel)
- Execute shell script:
- Execute text script
- display results briefly
killall -SIGCONT "$KMVAR_continueApp"
- Growl:
- Title: Paused
- Comment:
%Variable%continueApp%
has been continued.