You might be able to figure something out using a trick from this demo file: http://www.4shared.com/file/v5xFb7_R/ClickedWordDemo.html
In it, clicking a word triggers a script that uses the clicked word to look up a definition on another table and layout--but if you subsitute your desired action, it may serve.
And there are get functions you can use to access the currently selected text rather than the clicked word if you prefer that option.
Thanks PhilModJunk, downloaded the file ( it was a bit precarious to navigate the web-site the file was downloaded from, lots 'o junk; can i ask a personal question, as to why you chose the particular web-site, as opposed to serving it with filemaker from home/business ( can see why you wouldn't from filemaker hosting site, as there woulb be cost involved?) and will test it out.
from the get-go the idea seems like a no-go, as the user would want to highlight the text in the filemaker text field, and make it a hyperlink themselves. but your right, and not having seen the file yet, its quite judgemental, i might / hope to learn something from it.
potentially, your second suggestion seems better, using the get function, its just, a simple highlight and right-click is just too simple.
thanks anyways, when get to a computer with filemaker will test out the " ClickedWordDemo.fp7 "file.
There are two get functions that you can combine to extract the currently selected text from a field:
Get(ActiveSelectionSize) and Get(ActiveSelectionStart )
Middle ( YourTable::textfield ; Get ( ActiveSelectionStart ) ; Get (ActiveSelectionSize ) )
Thanks for your demo file philmodjunk
In my example I have adapted your idea to work with two slightly different scripts in order to either open a url from within a text field by clicking on either a full url [ Text field ] or a keyword that is associated with a url [ Text2 field ]. It needs a bit more work to deal with trailing punctuation marks such as ".", "!" or "?" that appear if the url is at the end of a sentence.