Set Mac Volume to a Specific Percentage with an Alfred Workflow

The Touch Bar on the MacBook is a pain in the ass. I’ve been getting sick of fighting with it to adjust volume and wanted an alternative to using the icon in the Mac OS menu bar. I already had some AppleScript code I use to reset volume to start my work day, so I ran with it to make a simple Alfred Workflow.

I didn’t realize how awesome this workflow would be. I’m using it all the time, even on my other Mac, which has the keyboard volume control buttons.

mac-vol-alfred-workflow-screenshot.png

Get it on GitHub.

Lock Screen and Sleep Display with Quicksilver

Looking for a quick way to lock your screen and put the display to sleep on Mac OS X using Quicksilver?

  1. Download Sleep Display.
  2. Extract the zip file and move SleepDisplay to your Applications folder.
  3. Run the SleepDisplay application at least once.
  4. Fire up Script Editor and enter the following code:

    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"

    launch application "SleepDisplay"

  5. Save this script to a location cataloged by Quicksilver.
  6. Create a HotKey Trigger in Quicksilver to run the script. I use command-control-shift-S as my keystroke combination.

I’m running Mac OS 10.5.1 on an iMac and this works great!