I want to move to Signal app and was wondering whether someone has created a solution to send a link for the current tab (page) in Safari to Signal app.
I've not seen one, but it should be a two-line macro...this seems to work:
You might need to add a slight delay between the paste and the Return key; I didn't actually test sending one :).
EDIT: I'm now not sure this is what you asked for. This inserts the current Safari page into an active Signal chat, assuming you're in Signal. That's the way I'd use such a thing. Or are you looking for something where you can be in Safari, and want to send a URL to some chat in Signal?
That would be much more complicated, because you'd have to figure out how to target whatever chat it is you want the link sent to. Signal doesn't have an AppleScript dictionary, so you can't target a chat that way. Its menus contain only the most basic commands, so you can't target a chat that way. You can't really use OCR or image detection, because the user you want might not appear in the window without scrolling.
You'd probably need to use Command-N to start a new chat, then use image detection or location relative to the window corner to click on the name, as nothing on the keyboard seemed to work.
-rob.