# How to set value of a touchbar widget equal to the value of another widget

**URL:** <https://community.folivora.ai/t/how-to-set-value-of-a-touchbar-widget-equal-to-the-value-of-another-widget/10058>\
**Category:** Configuration Help & General Discussion\
**Tags:** touch-bar\
**Created:** [August 1, 2019, 8:35am UTC](https://community.folivora.ai/t/how-to-set-value-of-a-touchbar-widget-equal-to-the-value-of-another-widget/10058 "2019-08-01T08:35:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fograd](https://community.folivora.ai/user_avatar/community.folivora.ai/fograd/32/7232_2.png) [@fograd](https://community.folivora.ai/u/fograd)\
**Post date:** [August 1, 2019, 8:35am UTC](https://community.folivora.ai/t/how-to-set-value-of-a-touchbar-widget-equal-to-the-value-of-another-widget/10058/1 "2019-08-01T08:35:41Z")

</div>

Hi everyone 🙂

I'm trying to make the value of an applescript widget equal to the value of another widget. I don't know much about applescript so I'm heavily relying on the documentations. So far I learned that I can update a widget using the following lines:

```auto
tell application "BetterTouchTool"

update_touch_bar_widget "ENTER WIDGET UUID" text "newButtonText"

end tell

```

However, I am trying to update the text using the text that is already in another script widget, meaning I want something like this:

```auto
update_touch_bar_widget "ENTER WIDGET UUID" text VALUEOFANOTHERWIDGET

```

Is there a way to do this?

Thanks a lot in advance 😄
