# Export list of search hits in context

**URL:** <https://discourse.devontechnologies.com/t/export-list-of-search-hits-in-context/59959>\
**Category:** Automation\
**Created:** [December 2, 2020, 6:28pm UTC](https://discourse.devontechnologies.com/t/export-list-of-search-hits-in-context/59959 "2020-12-02T18:28:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgeorwell](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/g/ec9cab/32.png) [@georgeorwell](https://discourse.devontechnologies.com/u/georgeorwell)\
**Post date:** [December 2, 2020, 6:28pm UTC](https://discourse.devontechnologies.com/t/export-list-of-search-hits-in-context/59959/1 "2020-12-02T18:28:12Z")

</div>

Can “search hits in context” be exported for the found records?  
With the summary of course.  
I see it can be copied from the Inspector.

I don’t see anything in the scripting dictionary that reveals the info displayed in the Inspector.

I have found:  
Discovery of an interesting script and its application in research (experimental only!)

> [@Discovery of an interesting script and its application in research (experimental only!)](https://discourse.devontechnologies.com/t/discovery-of-an-interesting-script-and-its-application-in-research-experimental-only/48333):
>
> I found this thread, IMHO the value of this script in research might have been overlooked… The script is originally intended for single word OR for more complex regex. But I find that any simple phase with more than 2 words can also yield a pretty narrowed-down outcome. I modify the script a tiny bit to include the name of item for each hit, in which can be useful if wiki-link is enabled. There are much more modifications that can be made… Disclaimer 1: experimental, can’t guarantee that i…

Exporting search results with context

> [@Exporting search results with context](https://discourse.devontechnologies.com/t/exporting-search-results-with-context/21924):
>
> I’d like to do something, but don’t know if its possible with DTPO or some scripting: imagine I’ll do a search, get several results; I select one of the results (eg. a PDF document) and I visualize it inside DTPO with the search terms highlighted in orange; the question: can I export (to txt for eg.) the parts of the document near the highlighted word? For example, 5 words before and 5 after? Imagine I search for “ipsum” inside a document with the following text: Etiam vitae arcu volut…

Note: cgrunenberg Mar '17 A future release will support this.  
Is it the future yet?

Can anyone point me towards a solution?

Thanks!

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [December 2, 2020, 6:39pm UTC](https://discourse.devontechnologies.com/t/export-list-of-search-hits-in-context/59959/2 "2020-12-02T18:39:42Z")

</div>

The search results in the Search inspector are not accessible via scripting. Copy and paste, copy and Comnand-N, or drag and drop are the available options.
