Moving files to an other folder that is created freshly

I want to daily backup my entourage DB to an other disk.
However i totally stuck and have no working code to do the actual moving.

first I want to create a folder that is unique.


tell application "Finder"
	activate
	make new folder at folder "XX" of folder "Backup Outlook" of disk "Data XX" with properties {name:(do shell script "date '+%d.%m.%Y'") & ("Outlook BU XX")}
end tell

Easy. Now I am stuck as to how to move the DB to the newly created folder.

Here’s a rough idea: you need to set a variable to point to your newly made folder. Then you can use the move or duplicate command to move/copy it.

tell application “Finder”
activate
set myNewFolder to make new folder at folder “XX” of folder “Backup Outlook” of disk “Data XX” with properties {name:(do shell script “date ‘+%d.%m.%Y’”) & (“Outlook BU XX”)}

move file “someFile” of folder “blahblah” to myNewFolder

end tell

Thanks SuperMacGuy

got it:

tell application "Finder"
	activate
	set myNewFolder to make new folder at folder "NF" of folder "Backup Outlook" of disk "Data X" with properties {name:(do shell script "date '+%d.%m.%Y'") & ("Outlook BU XX")}
	
	move folder "myFolder" of folder "HD:Users:e:Documents:Microsoft User Data:Office 2011 Identities" to myNewFolder
	
end tell