<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Mar 25, 2007, at 11:56 AM, Henrik Nyh wrote:</DIV><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Nathan Koch wrote:</FONT></P> <BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">I've found this topic a few times in the archives, but never came up with a definitive answer.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">I'm using Textmate for basic XHTML/CSS/JavaScript editing and while Camino and Safari happily pop right up when I choose "Open Document in Running Browser(s)" and Refresh when I pick "Refresh Running Browser(s)"</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">but Firefox responds a bit differently.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">It doesn't respond at all to "Open Document in Running Browser(s)" and Refresh Running Browser(s)" just opens a new, empty, window or tab.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">It's a bit frustrating as Firefox is my browser of choice for working on sites, thanks of course to the Web Development plugin among others.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Any advice?</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Firefox isn't very scriptable. The command tries to make it reload in two ways, both of them a bit fragile.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">If System Preferences > Universal access > "Enable access for assistive devices" is activated, it switches to Firefox and fakes pressing </FONT><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">⌘R.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande; min-height: 15.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">If access for assistive devices is not activated, it instead tells Firefox to open "JavaScript:window.location.reload();". That fails if Firefox is configured to open pages in new tabs.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande; min-height: 15.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">So the solution is to enable access assistive devices, or change your Firefox tab settings.</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>Another way we might want to make "open in firefox" work would be to save a temporary file and set it's "open with" property to FireFox.</DIV><DIV>I think that's the old school creator flag. I know there's a way to set that property from the shell.</DIV><DIV>Then you'd just have to replace the contents of the file and use the open command.</DIV><DIV><BR><DIV>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV></BODY></HTML>