script.getOutputType
better syntax