[TxMt] Re: Can't refresh Firefox from TextMate
Clay Teller
email at clayteller.com
Mon Aug 9 07:09:36 UTC 2010
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.
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.
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!
Again, thank you for helping out a newcomer.
Clay
2010/8/9 Björn Jadelius <b at jadelius.se>
> Hello.
> In my "refresh running browser" command the line with "tell app "Firefox"
> to Get URL…" is commented out.
> Are you sure "Enable access for assistive devices" is checked in System
> Preferences?
> Has this command worked earlier?
>
> My command:
>
> ps -xc|grep -sqi firefox && osascript <<'APPLESCRIPT'
> tell app "Firefox" to activate
> tell app "System Events"
> if UI elements enabled then
> keystroke "r" using command down
> -- Fails if System Preferences > Universal access > "Enable access
> for assistive devices" is not on
> else
> -- Comment out until Firefox regains Applescript support
> -- tell app "Firefox" to Get URL
> "JavaScript:window.location.reload();" inside window 1
> -- Fails if Firefox is set to open URLs from external apps in new
> tabs.
> end if
> end tell
> APPLESCRIPT
>
>
> /Björn Jadelius
>
>
> 8/8 2010 kl. 23.46 skrev Clay Teller:
>
> > Hello, I cannot get Firefox to refresh using TextMate's "refresh running
> browser" command.
> >
> > I am running Firefox 3.6.8 and TextMate 1.5.9. Here is the command:
> >
> > ps -xc|grep -sqi firefox && osascript <<'APPLESCRIPT'
> > tell app "Firefox" to activate
> > tell app "System Events"
> > if UI elements enabled then
> > keystroke "r" using command down
> > -- Fails if System Preferences > Universal access > "Enable
> access for assistive devices" is not on
> > else
> > tell app "Firefox" to Get URL
> "JavaScript:window.location.reload();" inside window 1
> > -- Fails if Firefox is set to open URLs from external apps in
> new tabs.
> > end if
> > end tell
> > APPLESCRIPT
> >
> > I have searched all over the internet and cannot figure it out.
> >
> > If anyone can suggest a solution, I would greatly appreciate it!
> >
> > Thanks,
> >
> > --
> > Clay Teller
> > clay at clayteller.com
> >
> > _______________________________________________
> > textmate mailing list
> > textmate at lists.macromates.com
> > http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100809/b2e2b103/attachment.html>
More information about the textmate
mailing list