Trying to set up a flag that will collapse some containers based on whether the app is being run on demand or as part of a scheduled run. I'd like the analytic app to ouput file(s) to a directory if run by the scheduler but collapse that container if run on-demand in the gallery. Is there a way to do this? I know there is an Engine.GuiInteraction variable that will return 1 if run from designer or 0 if run on server. But can I distinguish between the two different runs on the server?