I'm afraid there is not clean way to do that, your...
# suitescript
a
I'm afraid there is not clean way to do that, your best bet would be to have a global/object or constant to hold the ID for Production and Sandbox and then check in which system you are at execution time with the runtime module.