# Reproducing an exported Day One markdown journal entry

**URL:** <https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242>\
**Category:** DEVONthink\
**Tags:** automation\
**Created:** [June 23, 2021, 11:46am UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242 "2021-06-23T11:46:11Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [June 24, 2021, 1:27pm UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242/21 "2021-06-24T13:27:19Z")

</div>

You’re making some excellent progress 🙂

---

<div class="post-metadata">

**Author:** ![Stephen\_C](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/stephen_c/32/8107_2.png) [@Stephen\_C](https://discourse.devontechnologies.com/u/Stephen_C)\
**Post date:** [June 24, 2021, 1:29pm UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242/22 "2021-06-24T13:29:02Z")

</div>

Thank you so much! 😊 I ought not have posted the initial script until I’d made a bit more progress. 😄

Stephen

---

<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:** [June 24, 2021, 1:33pm UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242/23 "2021-06-24T13:33:40Z")

</div>

No worries! And it also could be interesting to others to see the progression.

---

<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:** [June 24, 2021, 1:53pm UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242/24 "2021-06-24T13:53:18Z")

</div>

> [@Stephen\_C](#):
>
> ```auto
> -- because there is only one markdown file in the group…
> set myRecord to item 1 of myRecords
> 
> ```

I was wondering about the “only one markdown file”  
Don’t you have multiple files (one for each day) named  
“longWeekday & " " & theDay & " " & theMonth & " " & theYear”  
I use a search to retrieve the correct file ( **set** myRecords **to**  **search** “name:"” & theName & “"”)

I have a similar script running automatically each morning  
It creates the daily journal file from a template  
The file is then ready for the day’s entries

My filename standard is yyyy-mm-dd Journam [longWeekday]  
It works better for sorting (name descending)

---

<div class="post-metadata">

**Author:** ![Stephen\_C](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/stephen_c/32/8107_2.png) [@Stephen\_C](https://discourse.devontechnologies.com/u/Stephen_C)\
**Post date:** [June 24, 2021, 2:24pm UTC](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242/25 "2021-06-24T14:24:00Z")

</div>

Although I’m not currently using DT for journal entries I envisage opening a new markdown file in a Temp group each day and just adding to that during the day. At the end of the day I’d run the script and then move the file to the appropriate year group for journal entries.

I’d not worry about naming the file when opened as the script will take care of that at the end of the day.

I found sorting by name not as good as having the custom metadata field—which allows sorting exactly by date.

Stephen

[Previous page](https://discourse.devontechnologies.com/t/reproducing-an-exported-day-one-markdown-journal-entry/65242.md?page=1)
