# Moving Inbox Notes to specific folders in my DB

**URL:** <https://discourse.devontechnologies.com/t/moving-inbox-notes-to-specific-folders-in-my-db/64441>\
**Category:** DEVONthink\
**Created:** [May 12, 2021, 3:25pm UTC](https://discourse.devontechnologies.com/t/moving-inbox-notes-to-specific-folders-in-my-db/64441 "2021-05-12T15:25:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![DTLow](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/dtlow/32/18161_2.png) [@DTLow](https://discourse.devontechnologies.com/u/DTLow)\
**Post date:** [May 12, 2021, 5:16pm UTC](https://discourse.devontechnologies.com/t/moving-inbox-notes-to-specific-folders-in-my-db/64441/7 "2021-05-12T17:16:15Z")

</div>

> [@cme4ever](#):
>
> need to know how to start

Here’s a basic script to move selected records

```auto
tell application id "DNtp"
	set selectedNotes to get selection
	repeat with theNote in selectedNotes
		set theFilingGroup to get record at "/🗂Filing" in database "Devonthink"
		--
		-- Additional code to refine value for theFilingGroup
		--
		move record theNote to theFilingGroup
	end repeat
end tell

```

My script has additional code to set filename, tags …  
I added the script as a toolbar icon

---

_[View the full topic](https://discourse.devontechnologies.com/t/moving-inbox-notes-to-specific-folders-in-my-db/64441)._
