# Two pieces of AppleScript: one works, one fails—why?

**URL:** <https://discourse.devontechnologies.com/t/two-pieces-of-applescript-one-works-one-fails-why/65776>\
**Category:** DEVONthink\
**Created:** [July 23, 2021, 11:18am UTC](https://discourse.devontechnologies.com/t/two-pieces-of-applescript-one-works-one-fails-why/65776 "2021-07-23T11:18:15Z")\
**Posts on this page:** 1\
**Showing post:** 24

<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:** [July 23, 2021, 5:06pm UTC](https://discourse.devontechnologies.com/t/two-pieces-of-applescript-one-works-one-fails-why/65776/24 "2021-07-23T17:06:59Z")

</div>

![2021-07-23_18-04-59](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/0/3/0392665bc319d28cbe1368cab293ca21cc3885b1.jpeg)

And I was searching for 31/05/2021.

The thing that totally baffles me is that if I leave the answer as the default it comes up with the correct UUID (including if I input that date manually) but if I input any other date it fails.

Stephen

Edit: to remove more than one me: no wonder, in the circumstances!

---

_[View the full topic](https://discourse.devontechnologies.com/t/two-pieces-of-applescript-one-works-one-fails-why/65776)._
