<meta charset="utf-8">Björn, thank you, as a first-timer I was thrilled to get your reply. Yes, I meant to mention that "Enable access..." was checked on my system.<div><br></div><div>After reading your suggestion, I commented out that line in my command. I also unchecked and checked "Enable access..." just to be on the safe side.</div>

<div><br></div><div>After doing these things it is working now! I must admit I had zero expectations that anything would change by commenting out that line, but seems like that fixed it!</div><div><br></div><div>Again, thank you for helping out a newcomer.</div>

<div><br></div><div>Clay<br><br><div class="gmail_quote">2010/8/9 Björn Jadelius <span dir="ltr"><<a href="mailto:b@jadelius.se">b@jadelius.se</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello.<br>
In my "refresh running browser" command the line with "tell app "Firefox" to Get URL…" is commented out.<br>
Are you sure "Enable access for assistive devices" is checked in System Preferences?<br>
Has this command worked earlier?<br>
<br>
My command:<br>
<div class="im"><br>
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>
</div>         -- Comment out until Firefox regains Applescript support<br>
         -- tell app "Firefox" to Get URL "JavaScript:window.location.reload();" inside window 1<br>
<div class="im">         -- Fails if Firefox is set to open URLs from external apps in new tabs.<br>
      end if<br>
   end tell<br>
APPLESCRIPT<br>
<br>
<br>
</div>/Björn Jadelius<br>
<br>
<br>
8/8 2010 kl. 23.46 skrev Clay Teller:<br>
<div><div></div><div class="h5"><br>
> 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>
> 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>
><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,<br>
><br>
> --<br>
> Clay Teller<br>
> <a href="mailto:clay@clayteller.com">clay@clayteller.com</a><br>
><br>
</div></div>> _______________________________________________<br>
> textmate mailing list<br>
> <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div>