> On 14 Apr 2016, at 3:49 PM, Kay C Lan <lan.kc.macm...@gmail.com> wrote: > > Don't you hate it when you hit Send and immediately realise there is a > simpler solution. Don't need to ask for your fork name, I can just use the / > livecode/livecode/ fork to demonstrate the same thing: > > on mouseUp > put the htmltext of widget 1 of stack "revDictionary" into tText > filter lines of tText with "*<h1 style=" & quote & "margin:0px 0px 30px > 12px" & quote & ">*" > get matchText(tText,".+>(.+?)</h1>",tName) > replace " " with "-" in tName > get matchText(tText,">type</div><div class=.+?([_a-z]+)</div><div" ,tType > ) > put > "https://github.com/livecode/livecode/blob/community-docs/docs/dictionary/ > <https://github.com/livecode/livecode/blob/community-docs/docs/dictionary/>" > & \ > tType & "/" & tName & ".lcdoc" into tPath > launch URL tPath > end mouseUp
Yep, why not turn this into a simple plugin to add a button to the dictionary stack. I’m sure a few people would like to use it. Cheers Monte _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode