My notes are in the first post of the Wrapping thread...
I couldn’t figure out how to get Hype Export Scripts working, so I made a separate app to automate the process. It doesn’t use ImageOptim, but it does use scripting to generate the images for the Xcode project.
There are a lot of ways to automate tasks on the Mac.