Please suggest script
devin_asay at byu.edu
Wed Nov 17 13:40:43 EST 2010
On Nov 17, 2010, at 11:30 AM, Timothy Miller wrote:
> Thanks Andre!
> I think you might have misunderstood my request. What I want to do is pretty simple. I will manually locate web URLs, and hilite them manually. They are in plain text. Then I want to click a button that will turn the hilited plain-text URL into a clickable link. By "clickable link" I mean I want it to open the URL in my web browser.
> I tried:
> get the selectedText
> revGoUrl it
> That worked, to my amazement. Cool. Didn't know about RevGoUrl.
> OTOH, the docs say revGoUrl is deprecated. I'm not sure what to use instead.
> I want the same link to be clickable next time I come across it. I know how to set the textstyle of the selectedText to "link", but that doesn't make it a clickable link.
> Hope that's clear.
It's pretty simple:
The link-making button:
set the textStyle of the selectedChunk to "link"
In the field that has the linked text:
on linkClicked pTxt
launch url pTxt
That should do what you want.
Humanities Technology and Research Support Center
Brigham Young University
More information about the Use-livecode