Desktop Patterns as it shipped in System 7.5 does not support changing patterns while in the background.
To change the Desktop Patterns with AppleScript, you need to use ResEdit to modify the size resource and turn on the bit setting for "Can background". This enables Desktop Patterns to respond to AppleScript commands while it is in the background.