Here's another for example that /magic can do without having to write a whole new script to do it. Say you have an ASCII ART saved to a file and want to display it in rainbow colors. Just type:
/magic $lines(hellokitty.txt) $rainbow $read(hellokitty.txt,%i)
By the time you open the script editor to write your own custom script to do this, the opportunity may have already passed.