![]() ![]() shouldPrompt - an optional boolean value indicating if the dialog box asking if the System Preferences application should be opened should be presented when Accessibility is not currently enabled for Hammerspoon.Hs.accessibilityState(shouldPrompt) -> isEnabled The function should accept a single parameter, which will be a string containing the text that was dragged to the dock icon.serialising state, destroying system resources that will not be released by normal Lua garbage collection processes, etc)Īn optional function that will be called when text is dragged to the Hammerspoon Dock Icon or sent via the Services menu You do not need to fastidiously destroy objects you have created, this callback exists purely for utility reasons (e.g.This function should not perform any asynchronous tasks.xht).Īn optional function that will be called when the Lua environment is being destroyed (either because Hammerspoon is exiting or reloading its config) text), Web site locations (.url), XHTML documents (.xhtml. For example, hs.urlevent will be triggered when the following filetypes are dropped onto the Dock Icon: HTML Documents (.html. This callback will be triggered when ANY file type is dragged onto the Hammerspoon Dock Icon, however certain filetypes are also processed seperately by Hammerspoon. ![]() If multiple files are sent, this callback will be called once for each file. ![]()
0 Comments
Leave a Reply. |