# Custom meta data behavior in AppleScript

**URL:** <https://discourse.devontechnologies.com/t/custom-meta-data-behavior-in-applescript/87994>\
**Category:** Feedback\
**Created:** [November 11, 2026, 4:38pm UTC](https://discourse.devontechnologies.com/t/custom-meta-data-behavior-in-applescript/87994 "2026-11-11T16:38:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tekl](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/tekl/32/5508_2.png) [@Tekl](https://discourse.devontechnologies.com/u/Tekl)\
**Post date:** [November 11, 2026, 4:38pm UTC](https://discourse.devontechnologies.com/t/custom-meta-data-behavior-in-applescript/87994/1 "2026-11-11T16:38:07Z")

</div>

I manage some custom metadata using AppleScript. Until now, I’ve been able to correctly access fields that contain a hyphen in their name, such as `mdcustomer-url`. I’m not sure when this started happening, but in the current version, AppleScript always removes the hyphen from the ID, meaning that numerous new data fields have now been created, named like `mdcustomerurl`. Is this a bug, or do I now have to recreate and restructure all my fields?

I used to get different fields returned via these lines:

```applescript
get custom meta data for "mdcustomer-url" from this_item
get custom meta data for "mdcustomerurl" from this_item

```

Now they access the same field.

---

<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 11, 2026, 4:41pm UTC](https://discourse.devontechnologies.com/t/custom-meta-data-behavior-in-applescript/87994/2 "2026-11-11T16:41:54Z")

</div>

Characters which are reserved for the search syntax are stripped since version 4.2.2
