How can I move contents of folders to a path that shares the same name

I need to move the entire contents of folders into a different directories but they are folders that have the exact same name:

tell application “Finder”

set srcPath to ((parent of (path to me) as text) & "Motion Templates" as text)
set targetFolder to (((path to movies folder) as text) & "Motion Templates.localized" as text)

display dialog srcPath
display dialog targetFolder

move entire contents of srcPath to targetFolder

end tell

Inside of the Motion Templates directory are other folders that share the exact same name and I want the the contents of the folders that share the same name to be moved into the targetFolder. I have searched all over for a solution and have yet to find a post or tutorial that helps for this specific issue. Please any help would be greatly appreciated.

You just pass to Finder two strings when it need two references to disk items.

tell application "Finder"
    
    set srcPath to ((parent of (path to me) as text) & "Motion Templates" as text)
    set targetFolder to (((path to movies folder) as text) & "Motion Templates.localized" as text)
    
    display dialog srcPath
    display dialog targetFolder
    
    move entire contents of folder srcPath to folder targetFolder # Edited to match Finder requirements
    
end tell

Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) mardi 27 septembre 2016 08:48:07