# Code snippets for getting list of Action sets, actions and playing an action?

**URL:** <https://forums.creativeclouddeveloper.com/t/code-snippets-for-getting-list-of-action-sets-actions-and-playing-an-action/2208>\
**Category:** UXP Plugin API\
**Created:** [November 11, 2020, 11:47pm UTC](https://forums.creativeclouddeveloper.com/t/code-snippets-for-getting-list-of-action-sets-actions-and-playing-an-action/2208 "2020-11-11T23:47:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddbell](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ddbell/32/1030_2.png) [@ddbell](https://forums.creativeclouddeveloper.com/u/ddbell)\
**Post date:** [November 11, 2020, 11:47pm UTC](https://forums.creativeclouddeveloper.com/t/code-snippets-for-getting-list-of-action-sets-actions-and-playing-an-action/2208/1 "2020-11-11T23:47:32Z")

</div>

Does anyone know where there is soem example code for playing actions in UXP?

A couple of weeks back, I ran across some example code snippets for getting a list of action sets/actions and playing a Photoshop action in UXP which worked perfectly as is. I thought the snippets were at this link but I don’t see the code there so it must have been somewhere else (or maybe it was removed). The snippets were really helpful. I wish I could find them again. This link contains some information on actions but I really would like to find the example code that I had found 2 weeks ago. It’s a lot easier when then are example snippets to reference.

> **[Action · Photoshop UXP (Alpha)](https://adobe-photoshop.github.io/uxp-api-docs/docs/classes/action)**
>
> Represents an action in the Actions palette. Actions are series of commands that can be recorded by user, and can be replayed

---

<div class="post-metadata">

**Author:** ![ddbell](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ddbell/32/1030_2.png) [@ddbell](https://forums.creativeclouddeveloper.com/u/ddbell)\
**Post date:** [November 12, 2020, 12:09am UTC](https://forums.creativeclouddeveloper.com/t/code-snippets-for-getting-list-of-action-sets-actions-and-playing-an-action/2208/2 "2020-11-12T00:09:07Z")

</div>

Nevermind, I found the code snippets on this page. “actionTree” was what I couldn’t figure out from the other page.

[https://www.adobe.io/photoshop/uxp/guides/ps\_basics/#actions-and-actionsets](https://www.adobe.io/photoshop/uxp/guides/ps_basics/#actions-and-actionsets)
