Arrgh, wait:
<script type="text/javascript" charset="utf-8"> try { if (TextMate.system("", function (task) { })) { var __TM_confirm_Status; alert = function(s){TextMate.system(""$DIALOG" -e -p '{messageTitle="JavaScript";informativeText=""+s.replace(/\x27/ g,"’").replace(/"/g,'\"')+"";}'",null);}; confirm = function(s){TextMate.system(""$DIALOG" -e -p '{messageTitle="JavaScript";informativeText=""+s.replace(/\x27/ g,"’").replace(/"/g,'\"')+"";buttonTitles=("OK","Cancel ");}'",null).onreadoutput=function(s){if(s==1) {__TM_confirm_Status =false}else{__TM_confirm_Status=true}};return(__TM_confirm_Status)}; } } catch(e) {} </script>
I forgot to change " ' for confirm as well. It's really tricky ;}
--Hans