# Rename using Custom Data for human being

**URL:** https://discourse.devontechnologies.com/t/rename-using-custom-data-for-human-being/69820
**Category:** DEVONthink
**Tags:** automation
**Created:** [February 26, 2022, 10:31pm UTC](https://discourse.devontechnologies.com/t/rename-using-custom-data-for-human-being/69820 "2022-02-26T22:31:41Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![olivenoire](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/o/b19c9b/32.png) [@olivenoire](https://discourse.devontechnologies.com/u/olivenoire)
#### Post date: [February 27, 2022, 10:06pm UTC](https://discourse.devontechnologies.com/t/rename-using-custom-data-for-human-being/69820/22 "2022-02-27T22:06:01Z")

</div>

I reply to myself if one day somebody wants to do the same thing without have to learn a new langage etc

> [@Rename with last day of month when source only contains year-month](https://discourse.devontechnologies.com/t/rename-with-last-day-of-month-when-source-only-contains-year-month/68175/5):
>
> The record is passed to the script See the skeleton script below on performSmartRule(theRecords) tell application id "DNtp" repeat with theRecord in theRecords \<\<\< insert code end repeat end tell end performSmartRule I’d like to rename it to has the last day of that month Here’s example code to get the last day of the month and rename the record set theName to name of theRecord set theName to theName & my LastDay(texts -6 thru -1 of t…

---

_[View the full topic](https://discourse.devontechnologies.com/t/rename-using-custom-data-for-human-being/69820)._
