This post has a screenshot.
As I am not a Mac person, I'm not a very good source of authority, but I think Automator is just a way of running drag-and-drop scripts.
Pop the code you were given into the text box to create the automator app. Then double-click it to open the editor or drag any number of EPUB/AZW3 files onto it to open them in separate Editor instances.