I ran into an issue with the Screenshot to Clipboard Interactively Macro related to this Set System Clipboard to File Reference action:
The action does put the image on the clipboard, but pasting into some apps (Messages, Unclutter...) resulted in a generic thumbnail rather than the actual image. The issue is related to clipboard/pasteboard/format/sharing issues that are above my pay grade, but I stumbled across a little trick that bailed me out so I thought I would share.
Adding a Rotate Image action (set to 0 degrees so it doesn't actually rotate), puts a duplicate of the image on the clipboard with additional formats which can be interpreted by other apps.
I also added an action to delete the past clipboard to get rid of the original so I wouldn't have duplicates.
Will anyone need this? No idea, but I was happy to stumble across it.
No, I didn't reach out to @peternlewis originally, because I didn't know if it was by design that the Set System Clipboard to File Reference writes only the one representation to the pasteboard. Also, I don't really know what I'm talking about, so there's that. But maybe he wants to weigh in.
It does exactly what it's supposed to in placing a file reference on the clipboard:
{
{
«class furl»,
49
}
}
This is quite clearly a File-URL and just that. Some applications will accept that as a proxy for the image itself and will allow you to paste the image.
Some apps are looking for an actual image flavor on the clipboard.
What you need to use is the Read a File action with the Clipboard parameter.
FWIW, the Set Clipboard to Image action behaves the same way, which I would not have expected based on your «class furl» explanation
Excellent solution!
screencapture -ic
I've used this approach, but it won't work for this particular macro because, as far as I can tell, there is no way to use the -c switch and get the "interactive" feature of the clipboard.
Thanks for your help, Chris. The explanations you include with your solutions always help me learn.