# Bulk Editing of Metadata and Custom Metadata

**URL:** https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064
**Category:** DEVONthink
**Created:** [April 21, 2020, 1:23pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064 "2020-04-21T13:23:35Z")
**Posts on this page:** 6
**Page:** 2

<div class="post-metadata">

### Author: ![rkaplan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://discourse.devontechnologies.com/u/rkaplan)
#### Post date: [April 25, 2020, 4:52pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/21 "2020-04-25T16:52:17Z")

</div>

I have tried lots of responses which work from the clipboard but not from a dialog bog. One example is here where the input is acknowledged in the debug output code but still no vales are updated in the custom metadata fields:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/c/cc88be775c5d899f82026666f2dd2eb6146612ca.png)

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/f/f45e310b814d139cea598852d306d4eab6f95b50.png)

---

<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: [April 25, 2020, 5:47pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/22 "2020-04-25T17:47:35Z")

</div>

Just a heads-up: User interactions like dialogs aren’t suggested for use in smart rules. This would be better used with a script. In fact, I would test it with a script to see if it works.

---

<div class="post-metadata">

### Author: ![rkaplan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://discourse.devontechnologies.com/u/rkaplan)
#### Post date: [April 25, 2020, 6:08pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/23 "2020-04-25T18:08:46Z")

</div>

Well that is getting us a bit closer due to increased error reporting when running as a script rather than as a smart rule.

Running the script pointed out some quotes I was missing in the last statements.

This is my script now:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/7/75d075139d9f28fe67653c3348a9f6e2334c8a3e.jpeg)

When I run it the dialog box output is correct and then I get this error - I get it regardless of whether my input has the slashes or is just straight text.

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/b/ba791e76459e5388b6d648efcdfddcdb8e337cfe.png)

---

<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: [April 25, 2020, 6:17pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/24 "2020-04-25T18:17:46Z")

</div>

Why are you entering `text theDateEntered` ? `text` is not a parameter for that command in the dictionary.

---

<div class="post-metadata">

### Author: ![rkaplan](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/r/a3d4f5/32.png) [@rkaplan](https://discourse.devontechnologies.com/u/rkaplan)
#### Post date: [April 25, 2020, 6:35pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/25 "2020-04-25T18:35:00Z")

</div>

OK that solves - it - I had put the text in as I was debugging the syntax for entering dates. The main issue had been the lack of quotes at the end.

I appreciate your response in the other thread about Dark Mode and editing embedded scripts - that will make it much easier to find stuff like this when fixed.

Anyway this works now and opens up all sorts of options for working with custom metadata. Thanks you @BLUEFROG and @ryanjamurphy for your help.

The final script (which does also work as a smartrule by tweaking the first line) is:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/0/0eb956e847cc45be5abeab44fa090467e35b6947.jpeg)

---

<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: [April 25, 2020, 7:11pm UTC](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064/26 "2020-04-25T19:11:42Z")

</div>

No problem _(and again it’s best used as a script due to the user interaction)_.  
Cheers!

[Previous page](https://discourse.devontechnologies.com/t/bulk-editing-of-metadata-and-custom-metadata/55064.md?page=1)
