Hammerspoon: macOS Desktop Automation Tool Using Lua Scripting
By
tosh
2mo ago· 2 min readenCode
85/100
Golden Brown
Bagelometer↗
Slow-proofed and worth the wait. Worth its weight in flour.
Score85Typehow-toSentimentpositive
Summary
Hammerspoon is a macOS desktop automation tool that serves as a bridge between the operating system and a Lua scripting engine. It provides powerful automation capabilities through extensions that expose system functionality, allowing users to write Lua scripts to control various aspects of their macOS environment. The article explains that Hammerspoon requires manual setup with a configuration file and provides installation options including manual installation and Homebrew.
Key quotes
· 4 pulledThis is a tool for powerful automation of OS X. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine.
What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user.
With these, you can write Lua scripts to control many aspects of your OS X environment.
Out of the box, Hammerspoon does nothing - you will need to create ~/.hammerspoon/init.lua and fill it with useful code.
Staggeringly powerful macOS desktop automation with Lua - Hammerspoon/hammerspoon
