In AppleScript, how can you make a dialog box with a custom icon in the app bundle?

I’d like it to be in the Contents/Resources directory, and named “GenericNetworkIcon.icns”.

Thank you.

theguy123 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.