Have you tried checking some of the pet stores for a pet repellent - I've heard those products work well. You spray it on a piece of rag or something and attach it to the area where they are scratching. I've had success in the past by using this.