in reply to Re^4: Eliminate pop up window when script executes
in thread Eliminate pop up window when script executes

Do a print on $^0. Change the if to match the value that is returned and your problem is resolved.
  • Comment on Re^5: Eliminate pop up window when script executes