What a guy!. Great, that is just the ticket.
I actually had to remove the first line to get it working as a shelf button (?) so now it looks like this:
string $nodes[] = ls -long -type "mesh"
;
for($node in $nodes)
{
print($node + "n");
setAttr ($node + ".doubleSided") 0;
setAttr ($node + ".opposite") 0 ;
}
but it goes a treat now. Thanks very much glocker.