scripting photoshop layer sets

I am trying to script making a layer set which I have worked out how to do but I cannot work out how to put layers in the set i have created as the “container” property is read only and it didnt seem to work with the “move” command. I am new to applescript so this may be (and likely to be) a simple problem. Any help much appreciated. Thanks.

Model: Powerbook G4
AppleScript: 1.10.3
Browser: Safari 312
Operating System: Mac OS X (10.4)

I used the following and it worked fine in CS; I don’t have CS2 yet.

tell application "Adobe Photoshop CS"
	tell document 1
		set everyLayer to every layer
		set newLayerSet to make new layer set
		move everyLayer to newLayerSet
	end tell
end tell

Thanks a lot it worked just fine. All much appreciated. f