Question
Copy image to clipboard
I am trying to write a script that coping the current page as an image to the clipboard.
My approach is to export the current page as a PNG image, and copy it with `nircmd clipboard copyimage` shell command.
I tried using `app.doScript` to run `nircmd`, but without success.
Note: Although I succeeded to do it with a bridge to photoshop:
var bt = new BridgeTalk();
bt.target = "photoshop";
bt.body = "var f = File('" + tempFile.fsName + "');" +
"app.open(f);" +
"app.activeDocument.selection.selectAll();" +
"app.activeDocument.selection.copy();" +
"app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);" +
"app.close(f);" +
"f.remove();";
bt.send();but it opens the photoshop program, and it's annoying.
