AppleScript: Use ResEdit To Change Desktop Patterns

I am trying to use AppleScript to change the Desktop Patterns. When I try using the "Set Desktop Pattern to" command in the Desktop Patterns AppleScript dictionary I get a time out error.
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.
Published Date: Feb 19, 2012