I have a javascript that opens FILE with TextMate with txmt protocol. It works fine, but the problem is that I have a blank Safari window when this script is run.
document.onkeydown=function(e){
if(e.which == 17) isCtrl=true;
if(e.which == 69 && isCtrl == true) {
mywindow = window.open("txmt://open/?url=file://FILE","myWindow");
return false;
}
}
How can I not open the blank window?