script analysis