Taking a screenshot of a tooltip I am attempting to take a screenshot of a tooltip that appears when a user hovers over it, and immediately disappears upon any key press or cursor movement.  Unfortunately, this means the typical shortcut I use for screenshots (⌘+SHIFT+4) causes the element to disappear.

Is there any way I can capture this tooltip, preferably without installing any third party software?
You can do this using the screencapture CLI:

screencapture -T 5 -C ~/Desktop/screencapture.png


Define a delay using -T &lt;seconds&gt;. Use -C to capture the cursor too.

Add -i to capture interactively. This uses the normal capture region selection available from ⌘⇧4, however you can combine this with -T to add a delay so that it captures the tooltip in the region.