# Extracting folder names from database

**URL:** https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893
**Category:** Automation
**Created:** [November 12, 2010, 4:27pm UTC](https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893 "2010-11-12T16:27:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![elbe05](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/elbe05/32/13255_2.png) [@elbe05](https://discourse.devontechnologies.com/u/elbe05)
#### Post date: [November 12, 2010, 4:27pm UTC](https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893/1 "2010-11-12T16:27:35Z")

</div>

Someone knows how to extract all of the folder names in a given path of a DTPO database? For example Database “Stuff” as a group “Months” containing 12 subgroups (1 for each month) and so on. I would like to be able to extract the names from the path in order to be able to set dates to create an iCal event.

Thanks

---

<div class="post-metadata">

### Author: ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)
#### Post date: [November 23, 2010, 4:11pm UTC](https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893/2 "2010-11-23T16:11:57Z")

</div>

Here’s a simple example:

```auto

tell application "DEVONthink Pro"
	name of children of (parent named "Months" in database named "Stuff") whose type is group
end tell

```

Just replace the name of the group and database.

---

<div class="post-metadata">

### Author: ![elbe05](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/elbe05/32/13255_2.png) [@elbe05](https://discourse.devontechnologies.com/u/elbe05)
#### Post date: [February 22, 2011, 12:11am UTC](https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893/3 "2011-02-22T00:11:39Z")

</div>

Thanks Christian,

This got me started in setting up my digital tickler file system and produce a script to link to ical/BusyCal (as described in the Blog section!).

---

<div class="post-metadata">

### Author: ![system](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e6ff70c96be2eb307a274d890bba8d71ba671b3.png) [@system](https://discourse.devontechnologies.com/u/system)
#### Post date: [January 21, 2022, 11:10am UTC](https://discourse.devontechnologies.com/t/extracting-folder-names-from-database/10893/4 "2022-01-21T11:10:28Z")

</div>


