Aside from the suggestion of trimming the nails short and having numerous scratching posts.

When Logan and Zam decided to turn their attention to my furniture, I bought some Feliway and applied it whereever they were not supposed to be scratching.

I also picked up some of those two way clear sticky strips.

Haven't had a problem since.