Many thanks to everyone who have offered advice. Instead of persevering and trying to get the version of motion detect that comes with CHDK, I have loaded motion detector plus which is much simpler to operate and seems to work quite well with my SX 60