If it works then he could use this as two scripts and then map a keycombination to run one script and a different one to run the other.