We do not want to run same Automation scripts in Symbol Editor as in xDX. Unfortunately both identify as xDX so I cannot control wether a script runs or not depending on tools purpose.
for the ones that are interested in this problem too. SymbolEditor is started with argument "-Embedding"
You may ask argument with:
If Application.CommandLineArguments = "-Embedding" Then