

If multiple files are sent, this callback will be called once for each file.
HAMMERSPOON SPACES FULL
The function should accept a single parameter, which will be a string containing the full path to the file that was dragged to the dock icon.If set, this callback will be called regardless of whether or not Hammerspoon shows its console window in response to a click (which can be enabled/disabled via hs.openConsoleOnDockClick()Įxtensions/_coresetup/_a line 49Īn optional function that will be called when a files are dragged to the Hammerspoon Dock Icon or sent via the Services menu.

You can assign a new function to the variable to replace it with your own variant.Įxtensions/_coresetup/_a line 584Īn optional function that will be called when the Hammerspoon Dock Icon is clicked while the app is running extension) namespace, and object metatables.

It can also be loaded and processed by the hs.doc extensionĮxtensions/_coresetup/_a line 144Ī table containing read-only information about the Hammerspoon application instance currently running. This contains the full Hammerspoon API documentation and can be accessed in the Console using help("someAPI"). Typically ~/.hammerspoon/Įxtensions/_coresetup/_a line 44Ī string containing the full path to the docs.json file inside Hammerspoon's app bundle. Functions - API calls offered directly by the extensionĪPI Documentation Constants configdir SignatureĪ string containing Hammerspoon's configuration directory.Constants - Useful values which cannot be changed.Core Hammerspoon functionality Submodules
