Search text or shape data in SharePoint.

Is there a way to search information like text or shape data in a Visio-drawing published on a SharePoint-site like you could do when saved as html?
Staffan Söderholm

Hi,
As far as I know, we can search the text from html file on a SharePoint-site. Please see the below article:
https://technet.microsoft.com/en-us/library/jj219530.aspx
Then, this issue is more related to the SharePoint search, I recommend you post the question to SharePoint search forum:
https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointsearch
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.

Similar Messages

  • Can I search text messages by date? I need to see a message from October.

    Can I search text messages by date on my phone or on the cloud? I need to see a message from October.

    No, search/sort by date isn't available on the  phone.

  • PS script which can search Personally Identifiable Information data in sharePoint site

    I would like to write a  PS script which can search for and report on Personally Identifiable Information like card numbers, etc in SharePoint site. I would like to find it in txt as well as xls word .
    Velu K

    Hi Velu,
    Based on your description, my understanding is that you want to get the needed user properties for all the users using PowerShell.
    I recommend to use the code below for getting the properties to txt file using PowerShell and you need to grant Full Control permission on the User Profile Service Application for the user who execute the commands:
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    #change the URL to your root site URL
    $site = new-object Microsoft.SharePoint.SPSite("http://sp");
    $ServiceContext = Get-SPServiceContext $site
    $ProfileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext)
    $AllProfiles = $ProfileManager.GetEnumerator()
    #You need to create the text file called UserProfiles in C disk(you can change the name to be what you want and put it in the place where you want )
    $file = new-object System.IO.StreamWriter "C:\UserProfiles.txt";
    $file.Writeline("DisplayName|Accountname|workEmail");
    #get the user properties you want
    foreach ($profile in $AllProfiles) {
    $DisplayName = $profile.DisplayName
    $AccountName = $profile[[Microsoft.Office.Server.UserProfiles.PropertyConstants]::AccountName].Value
    $workEmail = $profile[[Microsoft.Office.Server.UserProfiles.PropertyConstants]::workEmail].Value
    $file.Writeline($DisplayName+"|"+$AccountName+"|"+$workEmail);
    $file.close();
    $site.Dispose()
    More references:
    http://social.technet.microsoft.com/wiki/contents/articles/19780.sharepoint-2010-export-user-profile-properties-to-a-text-file-using-powershell.aspx
    http://blogs.catapultsystems.com/rhutton/archive/2012/10/11/updating-a-user-profile-picture-using-powershell-exception-calling-quote-ctor-quote-with-quote-1-quote-argument.aspx
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Victoria Xia
    TechNet Community Support

  • Search result to get data from bing search and display it in sharepoint page.

    I have configured result source which gets data from bing site,i have given following url as source url
    http://www.bing.com/search?q={?searchterms}&format=rss&Market=en-Us
    but it returns only 8 results from RSS. i want to get all results of search and display it in my SharePoint search results page. 
    any pointers will be helpful. 

    Hi,
    According to your post, my understanding is that you wanted to search result to get data from bing search and displayed it in sharepoint page.
    To display more items, you can modify the item number when you add
    New Query Rule.
    To get all results, I recommend to use the “Show More”
    link in the result page.
    You can enter the URL when you add New Query Rule:
    "More" link goes to the following URL: http://www.bing.com/search?q={searchterms}
    Here is a great blog for your reference:
    http://sharepoint-community.net/profiles/blogs/integrate-bing-with-sharepoint-online-2013-search
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to copy Excel sheet data to SharePoint 2010 List?

    Hi,
       I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
    Single line of text,
    Multiple line of text,
    Choice
    Number,
    Date,
    Person or Group.
    Now i need to export the excel data to SharePoint list.
    When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
    can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
    Thanks in advance.
    Badri

    I've updated the example of using PowerShell to include a Person field (user field) and a choice field.
    The CSV file has the following columns:
    TRIP_NO
    VESSEL_NAME
    FLAG
    AGENT_NAME
    CURRENT_LOCATION
    RPT_DATE
    EMPLOYEE
    EMPLOYEE_TYPE
    #Get the CSV file and connect to the SharePoint list
    $vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
    $l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
    #Get the lists EmployeeType field (choice)
    $employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
    #Loop through the items and add them to the list
    $r = 1;
    foreach($item in $vessellist)
    $ni = $l.items.Add();
    #Add the Title, using the rows VESSEL_NAME column
    $ni["Title"] = $item.VESSEL_NAME;
    #Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
    [DateTime]$rd = New-Object System.DateTime;
    if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
    $ni["Date Recorded"] = $rd;
    #Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
    [Int64]$tn = New-Object System.Int64;
    if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
    $ni["Trip Id"] = $tn;
    #Add some other text properties
    $ni["Flag"] = $item.FLAG;
    $ni["Agent Name"] = $item.AGENT_NAME;
    $ni["Current Location"] = $item.CURRENT_LOCATION;
    #Add user information
    $ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
    $employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
    #Update the item
    $ni.Update()
    Write-Host ([String]::Format("Added record:{0}",$r));
    $r++;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
    I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Write data to SharePoint from embeded Flex swf

    I am trying to integrate Flex 3 applications into SharePoint 2007 environment which would allow our users to read/write/delete data from SharePoint using an embeded Flex app inside SharePoint. While the article from matthew.meier on "Adding Event Driven Flex Components to Microsoft Sharepoint 2007" is great and another article by Serge van den Oever on "Use Flex to retrieve data from a SharePoint list" is fantastic, they neither touch the topics of writing or inserting data into SharePoint. My goal is to create a two-way communication between Flex and SharePoint to dynamically pull (read) data into Flex  from SharePoint lists, etc via GUID or other method AND to also write or update SharePoint from a front-end Flex inside SharePoint.

    I have been working on a solution which appears like it would work, but I am getting errors. The source code and examples are found on Code Project http://www.codeproject.com/KB/aspnet/FlexASPWebService.aspx?msg=3270246#xx3270246xx This Flex/ASP example uses a web service to communicate to a SQL database. Flex makes a web service call to the .asmx file via WSDL and the magic happens. I am running into a roadblock as I receive an error that the app cannot find the WSDL. I have tried to run the same WSDL URL in a browser and I get an server application error.
    I also tried a solution found at http://shardulbartwal.wordpress.com/2008/03/20/import-web-servicewsdl-wizard-in-flex-30/ to load the WSDL file directly into Flex, but I ran into another roadblock. When I get to this step below Flex gives an error that it cannot find the WSDL file either…
    Here is the WebService call from Flex…
    The files from Code Project contain a directory structure as such:
    TestWebService\Service.asmx
    TestWebService\Web.config
    TestWebService\App_Code
    TestWebService\App_Code\Service.cs
    TestWebService\App_Data
    The Service.cs file is inside the App_Code directory and is referenced from the Service.asmx file with this code:
    My Flex file calls the Service.asmx?WSDL which then calls the file Service.cs and then it breaks.
    The Code for the Flex file is as follows…
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
    <mx:Script>
          <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                private function init():void {
                      // Get Data from WebService and fill datagrid when you fist invoke the application
                      ws.GetEmployees(); 
                private function GetEmployees(event:ResultEvent):void {
                      // Databind data from webservice to datagrid
                      datagrid.dataProvider = event.result;
                private function SaveEmployee(event:ResultEvent):void {
                      // To Refresh DataGrid;
                      ws.GetEmployees();
                      Alert.show("Saved Successfully");
                private function AddRecord(event:MouseEvent):void {
                      // Save a record using a WebService method
                      ws.SaveEmployee(txtEmpId.text, txtEmpName.text, txtEmpEmail.text); //
                private function fault(event:FaultEvent):void {
                      // Oppps some error occured
                      Alert.show(event.toString());
          ]]>
    </mx:Script>
    <!-- WebService definition -->
    <mx:WebService id="ws" wsdl="http://localhost/TestWebService/Service.asmx?WSDL" fault="fault(event)">
          <mx:operation
                name="GetEmployees"
                resultFormat="object"
                result="GetEmployees(event)"
                 />
          <mx:operation
                name="SaveEmployee"
                resultFormat="object"
                result="SaveEmployee(event)"
                 />
    </mx:WebService>
          <mx:Panel x="41.5" y="66" width="714.5" height="237" layout="absolute" title="ASP.NET WebService + Flex Demonstration">
                <mx:HBox height="95%" width="95%" horizontalCenter="0" verticalCenter="0">
                      <mx:DataGrid id="datagrid" width="465" height="100%">
                            <mx:columns>
                                  <mx:DataGridColumn headerText="Emp Id" dataField="EmpId"/>
                                  <mx:DataGridColumn headerText="Emp Name" dataField="EmpName"/>
                                  <mx:DataGridColumn headerText="Emp Email" dataField="EmpEmail"/>
                            </mx:columns>
                      </mx:DataGrid>
                      <mx:Form x="608" y="74" width="100%" height="100%" borderStyle="solid">
                            <mx:FormItem label="EmpId">
                                  <mx:TextInput width="106" id="txtEmpId"/>
                            </mx:FormItem>
                            <mx:FormItem label="EmpName">
                                  <mx:TextInput width="106" id="txtEmpName"/>
                            </mx:FormItem>
                            <mx:FormItem label="EmpEmail">
                                  <mx:TextInput width="106" id="txtEmpEmail"/>
                            </mx:FormItem>
                            <mx:FormItem width="156" horizontalAlign="right">
                                  <mx:Button label="Add" id="btnAdd" click="AddRecord(event)"/>
                            </mx:FormItem>
                      </mx:Form>
                </mx:HBox>
          </mx:Panel>
    </mx:Application>
    The Flex app error states it cannot locate the WSDL. Any ideas?
    I don’t know what I am doing wrong…

  • Unable to save lookup field data in SharePoint 2013 online list

    Dear Support,
    I had successfully created provider hosted app and deployed on SharePoint 2013 online site, in my project I created orderservice.asmx.cs web service and write a code for save record on SharePoint
    2013 online list as I mentioned below and calling on App1.js file.
    But I am unable to save lookup field value as mentioned below code
    Customer is a lookup field I want to save data in SharePoint 2013 online list( Order)where I had successfully
    inserted text field  data (Title &
    Special_x0020_Instruction).
    i am getting error as mentioned below
    500 Internal Server Error {"Message":"Invalid web service call, missing value for parameter: \u0027Title1\u0027.","StackTrace":"   at System.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2
    parameters)\r\n   at System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)\r\n   at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData,
    IDictionary`2 rawParams)\r\n   at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.InvalidOperationException"}
    Please let me know the code how to insert lookup field value (Customer)
    in SharePoint online list.
    OrderService.asmx.cs
    Public
    int InsertOrder (Order
    orderRecord)
                pwd.MakeReadOnly();
                clientContext.Credentials =
    new
    SharePointOnlineCredentials (myUserName, pwd);
    try
                  Web
    oWeb = clientContext.Web;
    ListCollection lists = oWeb.Lists;
    List oOrderlist = clientContext.Web.Lists.GetByTitle("Order");
                    clientContext.Load<ListCollection>(lists);
                    clientContext.Load<List>(oOrderlist);
                    ListItemCreationInformation
    itemCreateInfo = new                 ListItemCreationInformation();
    ListItem oListItem = oOrderlist.AddItem(itemCreateInfo);
                    oListItem["Title"]
    = Title;                        listItem["Special_x0020_Instruction"]
    = orderRecord.Instruction;
                        listItem ["Customer"]
    = orderRecord.CustomerId;
                        listItem.Update();
                        clientContext.ExecuteQuery();
    return 1;
    catch
    return -1;
    App1.JS
    $("#Save").click(function
    debugger;
    var OrderProfile = $('#orderprofile').val();
    var CustomerId = $('#exCustomerlist').jqxComboBox('getItem',
    $('#exCustomerlist').val());
    //var Instruction = $('#instruction').val();
            alert(OrderProfile);
            alert(CustomerId);
    var obj = {
    'Title': OrderProfile,
    'Customer': CustomerId }
            $.ajax({
                url:
    "OrderService.asmx/InsertOrder",
                type:
    "POST",
                dataType:
    "json",
                data: JSON.stringify(obj),
                contentType:
    "application/json; charset=utf-8",
                beforeSend:
    function (XMLHttpRequest) {
    //Specifying this header ensures that the results will be returned as JSON.
                    XMLHttpRequest.setRequestHeader("Accept",
    "application/json");
                success:
    function (response) {
                    $(".errMsg ul").remove();
    var myObject = response.d;
                    alert(myObject);
                error:
    function (response) {
                    alert(response.status +
    ' ' + response.statusText +
    ' ' + response.responseText);
    Regards,
    Akhilesh

    Hi Alex Brassington,
    Thanks for your reply.
    I am having the Site Administrator Permission of the public site.
    I am having the permission of Company Administrator of that site but still unable to find
    Device Channel on Site Setting. still I gave the user full control from Site Permission but nothing is happening.
    What should I do next?

  • SSRS and data from SharePoint lists - special characters in HTML

    Hi All,
    This may not actually fit into this forum, but here goes anyway...
    We're using SSRS to report on data stored in Project Server workspaces (so SharePoint lists). Prior to upgrading to 2013, we could pull this data in and set the "Placeholder properties" of the text box to interpret HTML tags as styles and it would
    format everything as it appeared in the SharePoint list. Now that we have upgraded to 2013, this works with a few notable exceptions - some special characters are rendered as their escaped/encoded (whatever the term is) - so a colon which is within the text
    field in SharePoint, rather than appearing in the SSRS report as ":" appears as "&#58;".
    These are multiline, rich text formatted columns in the SharePoint list. Using =Replace(Fields!Description.Value,"&#58;",":") in the report makes the appropriate replacement, but given that this occurs with a handful of other special
    characters as well, this solution becomes very unruley very quickly. Has anyone else encountered this, or does anyone have any other suggestions for a work around?
    If not now, when?

    Facing same issue but having no solution, please suggest..

  • Search text in sql server 2000

    how can i preapre a script to search all stored procedure, view, etc. which contain search text. just list out all the sp name, view name.

    select distinct
    object_name([id]) as obj_name,
    case
    when objectproperty([id], 'IsProcedure') = 1 then 'stored procedure'
    when objectproperty([id], 'IsScalarFunction') = 1 then 'scalar function'
    when objectproperty([id], 'IsTableFunction') = 1 then 'table function'
    when objectproperty([id], 'IsView') = 1 then 'view'
    end as obj_type
    from
    syscomments
    where
    objectproperty([id], 'IsProcedure') = 1
    or objectproperty([id], 'IsScalarFunction') = 1
    or objectproperty([id], 'IsTableFunction') = 1
    or objectproperty([id], 'IsView') = 1
    and objectproperty([id], 'IsMSShipped') = 0
    and [text] like '%orderid%'
    order by
    obj_type, obj_name
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

  • How to change the width of textbox in Search Texts iview

    Hi, Experts,
         I creat a search texts iview with stardard configuration to search the data in the repository.
    The problem is that the width of textbox is too short. And the user will input more than 40 characters in the textbox.
       In this way, the users can't see all the information unless he put the mouse pointer in the textbox and drag it.
       Is there any stardard configuration in MDM or MDM Portal to increase the width of textbox?
      Regards,
      Youli

    Hi Youli,
    I tried this but seems like there is no property available to change this setting. As these iViews are standard shipped, we cannot modify the design or code.
    Regards,
    Jitesh Talreja

  • Search text files in a folder

    Im given a project to implement a text file search engine to search text files in a folder to find matches for a given text and display the path of containing files. Here have to implement all the data structures i use.In order to search matches for given text , first i have to separate txt files and subfolders in a given folder. But i cant think of a way to separate them. does anybody have a solution?
    Thanx!

    Can you try something like this? This lists all the directories and their sub-directories along with the files. Displays the files with paths too.
    public class FileSearch {
         private static final String PATH = "C:\\temp";
              public static void main(String[] args){
                   File file = null;
                   String[] contents = null;               
                   file = new File(PATH);
                   contents = file.list();
                   for(String fileDir : contents){
                        file = new File(PATH+"\\"+fileDir);
                        if(file.isDirectory()){
                             System.out.println("["+file+"]");
                             listDirectory(file);
                        else{
                             System.out.println("     "+file);
              public static void listDirectory(File theFile){
                   String[] dirContents = null;
                   String path = theFile.getAbsolutePath();
                   if(theFile.isDirectory()){
                        dirContents = theFile.list();
                        for(String newFile : dirContents){
                             File dirFile = null;
                             dirFile = new File(path+"\\"+newFile);
                             if(dirFile.isDirectory()){
                                  System.out.println("["+dirFile+"]");
                                  listDirectory(dirFile.getAbsoluteFile());
                             else{
                                  System.out.println("     "+dirFile);
                   else{
                        System.out.println("     "+theFile);
         }

  • Trex is not searching texts in any document types other then PDF.

    Dear All
    We are implementing DMS in ECC 6.0.We have configured Trex 7.0 text search in ABAP stack. Trex not searching text in .dwg (Autocad) *.doc (Word files) files in SAP System through CV04N T-code it is not searching.
    It is searching only pdf files.
    System Details:
    Server ECC 6.0
    SAP_BASIS - SAPKB70010
    SAP_ABA - SAPKA70010
    SAP_APPL - SAPKH60007
    EA-APPL - SAPKGPAD07
    Error Message:
    We have added the mime types for full text search in SAP System, SPRO &#61664; Cross-Application Components &#61664; Document Management &#61664; General Data &#61664; Settings for Storage Systems &#61664; Maintain Storage System as application/acad & application/doc. And also in Trex server usr\sap\<SID>\TRX00\Trex\TREXValidMimeTypes.ini file.
    After adding we have restarted the Trex server & done the Reindexing in SAP System & tried. But it is not searching the text in autocad files.
    Kindly support for us, to solve this issue.
    Regards
    Harshavardhan.G
    Mob: - 91 99130 88039

    Hi Harshavardhan,
    could you please create a OSS ticket for BC-TRX and attach an example of DWG document to this. Please also check if the includehidden parameter (TREXFilter.ini) is set to true.
    Best regards,
    Mikhail

  • Failed to build mocha shape data

    Hello,
    I come with error that adobe is sending me when im trying to paste my mocha shape data in AE.
    This is what is showing in message :
    "AEGP Plugin MochaShapeConverter : Failed to build correct mocha shape data.
    ( 5027 :: 12 )"
    I took some steps to work it out and reinstalled software, cleaned registry, purged disk cash and all memory.
    This occured suddenly. There was no such problems in my earlier work.
    I did some searching. Still cant find solution on any forum.

    Sorry. System is Windows 7 x64, version of ae 13.0.0.214, version of mocha 3.2.1 .
    I cant move forward with project. I think this kind of problem must be common for all users, so it would be great to find possible solution.

  • Search text on RTF with lingo

    dear all ...
    can help me?..
    I make glossary with RTF text because on RTF Text is easy to change content but can help me to make search text or word on RTF text with lingo..?
    Thankyou

    Changing the BG colour of a chunk of text is not easy. It can be done with some imaging-lingo hoop-jumping, or by having a pool of shape sprites that can be dynamically allocated, sized and positioned.
    Place the following in a JavaScript typed #movie script:
    function jsSearch (aString, aMatch) {
      var aPattern = new RegExp(aMatch, "gi");
      var found;
      var results = list();
      while((found = aPattern.exec(aString)) != null) {
        results.append(found.index);
      return results;
    and this in a "regular" Lingo #movie script:
    on mHighlightMatches aMember, aString
      -- error check inputs
      if ilk(aMember, #member) = 0 then
        aMember = member(aMember)
        if ilk(aMember, #member) = 0 then
          exit
        end if
      end if
      if stringP(aString) = 0 then aString = string(aString)
      if stringP(aString) = 0 then exit
      -- will only work with #text nmembers
      if (aMember.type <> #text) then exit
      aMember.color = rgb(0, 0, 0)
      len = length(aString)
      lMatchPositions = jsSearch(aMember.text, aString)
      if count(lMatchPositions) = 0 then
        alert "Search text not found"
      else
        repeat with aStart in lMatchPositions
          aMember.char[aStart..(aStart + len)].color = rgb(255, 255, 0)
        end repeat
      end if
    end
    and now your button script might look like:
    on mouseUp me
      mHightlightMatches(member("text2"), member("text1").text)
    end

Maybe you are looking for