If you are running a script file (ex: rush.scpt or rush.app) using Automator.App, all those solutions will return as name: "Automator.app"! Not the name of the script file itself, ex: "rush.scpt" or "rush.app" or "rush.workflow"...