Can't we have a live preview using the "mirror" app and, with that code assigned to a keyboard shortcut (with shortcutd) do the trick?