Just a guess, but does your script 1.) SetProduct and 2.) if necessary, CheckOutExtension?From each above functions' help, "The setting of the product and extensions is only necessary within stand-alone scripts. If you are running tools from the Python window or using script tools, the product is already set from within the application, and the active extensions are based on the Extensions dialog box."