Convert global attributes to script variables.