A simple "Please wait" message

I’ve seen many complex methods for creating a “Please wait” message that can display while an AppleScript does something that takes a long time while showing no activity on screen. I asked Claude Code to come up with something, and it produced the linked code (after a few failed attempts which it managed to fix when prompted to do so):