Groups
Groups
Sign in
Groups
Groups
Hammerspoon
Conversations
About
Send feedback
Help
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 PM
8/2/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
Jul 10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Source:
https://github.com/Hammerspoon/hammerspoon/blob/950a7b111ce9b733f9cc82646eef770ad694b782/extensions/_coresetup/_coresetup.lua#L74-L90
There's also a fileDroppedToDockIconCallback equivalent
Reply all
Reply to author
Forward
0 new messages