Right now in mari there is not direct way to quickly get the selected patch to Image manager for the whole channel. "Patches > extract selected" extracts only for the current layer
So wrote this script to extract the selected patch for the whole channel to image manager.
*This in my view is a hack but will get the work done and is time saving when you want to do for lot of patches.
*It will try to merge all the layers in the current channel and export the selected patches to a local directory and read it back.