what is the purpose of context menu item "Send to Hammerspoon"?

64 views
Skip to first unread message

Joel D Canfield

unread,
Aug 2, 2023, 1:10:04 PM8/2/23
to Hammerspoon
how would one use this context menu item? I'm officially in love with Hammerspoon and want to dive in.

Ryan Long

unread,
Jul 10, 2025, 3:15:37 PMJul 10
to Hammerspoon
2 years later: I just had the same question and found that one can define this callback function which receives a single string arg with the text:

hs.textDroppedToDockIconCallback = function(str)
  hs.printf("received text via OSX services: %s", str)
end


There's also a fileDroppedToDockIconCallback equivalent
Reply all
Reply to author
Forward
0 new messages