# Retrieving file name from "See Also and Classify"

**URL:** https://discourse.devontechnologies.com/t/retrieving-file-name-from-see-also-and-classify/63005
**Category:** Automation
**Created:** [March 14, 2021, 7:03pm UTC](https://discourse.devontechnologies.com/t/retrieving-file-name-from-see-also-and-classify/63005 "2021-03-14T19:03:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)
#### Post date: [March 14, 2021, 7:24pm UTC](https://discourse.devontechnologies.com/t/retrieving-file-name-from-see-also-and-classify/63005/2 "2021-03-14T19:24:40Z")

</div>

> [@amalis](#):
>
> how to obtain the name of the highlighted file in “See Also and Classify”

There’s no direct way to act on a selected “See Also” record but it’s possible to do the `See Also` comparison in AppleScript by using the `compare` command. You could then use the results to directly copy the name of e.g. the first result or show a list of all results.

This [script](https://discourse.devontechnologies.com/t/putting-ai-better-to-work-moving-the-item-to-a-document-suggestion/61190/4) shows a list and moves the selected record to the chosen “See Also” record’s parent group. You could use parts of it to do what you want. If you need help let me know.

---

_[View the full topic](https://discourse.devontechnologies.com/t/retrieving-file-name-from-see-also-and-classify/63005)._
