how do i copy address book entries from a smart folder by script?

Hi
I am a newbie so my apologies for sounding like a dummy.
I am learning scripting by myself.
i tried to copy all my address book entries from a smart folder called “cell phone smart” to a regular folder called “cell phone”.
i used the following script

tell application "Address Book"
	set cellEntry to all of group 6
	add cellEntry to group 4
end tell

I get the following error:
Address Book got an error: Can’t make all of group 6 into type reference.
I dont understand what this means.
Generally, how do i copy records from one place to another?
By the way, the reason I am doing this is, when i want to isync my contacts to my mobile phone, isync does not offer to sync from smart folders. That is why, i have to periodically copy all entries from the smart folder to a regular folder from which i can sync.
Thanks in advance.

Model: powerbook G4 1.5G
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Hi,

I think you need to specify what you are trying to get (people) instead of using ‘all’. Also,you can refer to the groups by name, like this:

tell application "Address Book"
	add (people of group "cell phone smart") to group "cell phone"
	save addressbook -- To update UI
end tell

Best wishes

John M

John, thanks a ton! solved my problem in an instant. another dummy query for you - while i am running a repeat loop, i want to display a wait message on the screen, and the message should close on the completion of the loop.
thanks again.