We stand with Ukraine to help keep people safe. Join us
All Apps
Best AppsReviewsComparisonsHow-To
When you purchase through links on our site, we may earn an affiliate commission

Hammerspoon for Mac

Powerful automation tool using the Lua scripting engine.

Free
In English
Version 1.0.0
5.0
Based on 2 user rates

Hammerspoon overview

Hammerspoon is a tool for powerful automation of OS X. At its core, it 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.

This is very hard to describe succinctly. You can write Lua code that interacts with OS X APIs for applications, windows, mouse pointers, filesystem objects, audio devices, batteries, screens, low-level keyboard/mouse events, clipboards, location services, wifi, and more.

Typically you would write a configuration file in Lua that connects events to actions. You might want to bind a keyboard shortcut to a series of window operations, or an Applescript. You might want to run a series of commands when your wifi interface connects to your home network. You might want to display an alert when your battery drops below a certain percentage. You might want to do something crazy like having iTunes automatically start playing when your Mac detects you are in Paris.

If you want to explore the options Hammerspoon offers, check out the Getting Started Guide and the full API documentation.

What’s new in version 1.0.0

Fixed
  • Large amounts of Console window history should now consume less RAM and Hammerspoon should no longer hang when large amounts of text are written quickly to the window.
  • hs.network.ping should now always call the didFinish callback
  • hs.pasteboard.callbackWhenChanged() now correctly accepts nil for its first argument, as documented
  • Moving a window to another Space is now fixed in macOS Sonoma
  • Various typos/grammar/mistakes in docstrings have been fixed
Changed
  • Lua has been updated to 5.4.7
  • hs.urlevent callback now receives an extra parameter containing the full original URL
  • When holding Cmd and Option at startup, the dialog for resetting preferences is now clearer
Added
  • hs.spotify.getCurrentTrackArtworkURL()
  • hs.streamdeck now supports the newer hardware variant of the Stream Deck XL

Hammerspoon for Mac

Free
In English
Version 1.0.0
Write a detailed review about Hammerspoon

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
5.0

(0 Reviews of Hammerspoon)

There are no reviews yet
  • Comments

  • User Ratings

Help the community
There are no reviews yet, be the first to leave one
RobertAudi
RobertAudi
Sep 29 2022
0.9.97
5.0
Sep 29 2022
5.0
Version: 0.9.97
teamNOOB
teamNOOB
Jan 11 2030
0.9.83
5.0
Jan 11 2030
5.0
Version: 0.9.83