Changing or deleting the found text rectangle
Posted: Sat Nov 29, 2008 5:46 pm
Hi all ~
In my constant quest for simplicity..
There are times I would prefer that text which is found in an app by the find command in a script is either not pointed out by the "found rectangle" put around the text, as it is not a search for the user to directly see the search result pointed out... and at other times I wish to have the text pointed out a different way such as changing the text color, highlight or style properties.
My question is...
Is there a quick or more elegant way to remove the rectangle than what I've come up with.
I usually do something like:
Thanks for any input. Maybe I'm just missing something in the docs and my online search, and there is a really easy way to do this.
Lynn P.
Rev 2.8.1 / Mac OS 10.4.11
In my constant quest for simplicity..
There are times I would prefer that text which is found in an app by the find command in a script is either not pointed out by the "found rectangle" put around the text, as it is not a search for the user to directly see the search result pointed out... and at other times I wish to have the text pointed out a different way such as changing the text color, highlight or style properties.
My question is...
Is there a quick or more elegant way to remove the rectangle than what I've come up with.
I usually do something like:
Code: Select all
set the lockScreen to true --to hide the insertion cursor blinking
find whole "lookForThis" in fld "FieldToSearch"
set the textColor of the foundText to red -- do the preferred highlighting
select after text of fld "FieldToSearch" -- get rid of the rectangle
select after text of fld "HiddenField"
--moves insertion cursor out of the "FieldToSearch" text field
Lynn P.
Rev 2.8.1 / Mac OS 10.4.11