Copy link to clipboard
Copied
Hi! Does anyone know how to create a dropdown with an icon in ExtendScript?
I saw this in a regular script (not an extension) and I really want to know how!
Here is the example of what i saw, as you can see, there is an blue image icon in the list itself
1 Correct answer
Each ListItem has a .icon property. Load a PNG using File(<URI>) and assign that file to the .icon property, and when you show your dropdown list the icon should be there.
1 Pinned Reply
Hi @,
See if this tutorial might give you the info for this: https://adobe.ly/4hFJW1w
I hope it helps. Please let us know if it does.
Thanks,
Kevin
Copy link to clipboard
Copied
Hi @,
See if this tutorial might give you the info for this: https://adobe.ly/4hFJW1w
I hope it helps. Please let us know if it does.
Thanks,
Kevin
Copy link to clipboard
Copied
Unfortunately, I have already seen this video, it talks about icons in regular buttons, but there is no information about the list menu items
Copy link to clipboard
Copied
Each ListItem has a .icon property. Load a PNG using File(<URI>) and assign that file to the .icon property, and when you show your dropdown list the icon should be there.
Copy link to clipboard
Copied
Thank you!
This works
menu.add("item", "name").image = File("URL");

