The script won't work because the .activate doesn't have a parenthesis. Use the method .activate() instead.
.activate
.activate()
Reference: activate()