# Fixing a button that trim images and restore their original timestamps

**URL:** https://resource.dopus.com/t/fixing-a-button-that-trim-images-and-restore-their-original-timestamps/40138
**Category:** Help & Support
**Created:** [December 22, 2021, 7:57am UTC](https://resource.dopus.com/t/fixing-a-button-that-trim-images-and-restore-their-original-timestamps/40138 "2021-12-22T07:57:30Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![tbone](https://resource.dopus.com/user_avatar/resource.dopus.com/tbone/32/25726_2.png) [@tbone](https://resource.dopus.com/u/tbone)
#### Post date: [December 23, 2021, 1:42am UTC](https://resource.dopus.com/t/fixing-a-button-that-trim-images-and-restore-their-original-timestamps/40138/8 "2021-12-23T01:42:44Z")

</div>

The problem you encountered is probably related to this/mine:

> [@Script command vs. internal command and {f}](https://resource.dopus.com/t/script-command-vs-internal-command-and-f/20547):
>
> If I select multiple files and combine a script command and a regular command in a button like this: MyScriptCommand "{f}" SetAttr ATTR=+a "{f}" The script command runs only once, while the internal will be called multiple times. Is there a way t…

---

_[View the full topic](https://resource.dopus.com/t/fixing-a-button-that-trim-images-and-restore-their-original-timestamps/40138)._
