Package script and icons to the osp file

I tried to package script and icons to the osp, but failed. . .
+RegExpColumns
+TheMovieDB Poster&Info Downloader V2.0

<?xml version="1.0"encoding="utf-8"?>
<iconset name="COPYMOVE">
     <display_name>COPY MOVE Icons</display_name>
     <copyright>(c)2022 Ken</copyright>
     <artist>Ken</artist>
     <set size="small" width="20" height="20" filename="COPY MOVE.png">
           <icon name="CPMV" row="1" col="1" />
     </set>
     <set size="large" width="32" height="32" filename="COPY MOVE.png">
           <icon name="CPMV" row="1" col="1" />
     </set>
</iconset>

Paste (Copy) Here to New Subfolder.osp (5.6 KB)

If it's for an icon you want to use in a script dialog, it doesn't need to be in an icon set, and the XML isn't needed. (You'd only need it for toolbar buttons.) Just put the PNG inside the .osp and refer to it by filename in the script and it should work.

After many tests, I still can't see the icon.
image
image

dlg.Control("static3").label = "tmdb-32.png";                              // Icon

You need to use Script.LoadImage to load the image.

There's an example here: Help with Script Dialog icon - #6 by Jon

I tested it, same. :disappointed_relieved:
dlg.Control("static3").label = Script.LoadImage("Paste.png"); // Icon
Paste (Copy) Here to New Subfolder.osp (3.4 KB)

Jon's example script still works, so everything you need should be included there.

image

I checked and modified many times, still. :upside_down_face:
Maybe something went wrong in the script?

EDIT: I downloaded Jon's osp file, the folder of images needs to be named images. :sweat_smile: