I am struggling to craft a search to find items that are:
- Written in Markdown.
- In the Root of the database “staff”.
- Real path is
~/Library/Mobile Documents/com~apple~CloudDocs/Journals/CareRegister
.
Condition 1 is easy and with Condition 2 I attempted:
kind:markdown scope:personal
but this gives me not only the documents in the root database but also all documents further down the group hierarchy.
Plus I have no idea how to write Condition 3: Real path on file system is ~/Library/...
Any help appreciated!
Background: These documents are indexed in my iCloud Drive and by accident I must have logically moved them to the root of the database, but on the file system they are of course still in the iCloud Drive.