<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hello, I cannot get Firefox to refresh using TextMate's "refresh running browser" command.<br>
<br>I am running Firefox 3.6.8 and TextMate 1.5.9. Here is the command:<br><br><div style="margin-left: 40px; ">ps -xc|grep -sqi firefox && osascript <<'APPLESCRIPT'<br> tell app "Firefox" to activate<br>
tell app "System Events"<br> if UI elements enabled then<br> keystroke "r" using command down<br> -- Fails if System Preferences > Universal access > "Enable access for assistive devices" is not on <br>
else<br> tell app "Firefox" to Get URL "JavaScript:window.location.reload();" inside window 1<br> -- Fails if Firefox is set to open URLs from external apps in new tabs.<br> end if<br>
end tell<br>APPLESCRIPT<br clear="all"></div><br>I have searched all over the internet and cannot figure it out.<br><br>If anyone can suggest a solution, I would greatly appreciate it!<br><br>Thanks,</span><br clear="all">
<br>-- <br>Clay Teller<br><a href="mailto:clay@clayteller.com">clay@clayteller.com</a><br>