prop tt:59 --repeat every hour
on idle
--parameters
return tt *60
end idle
--example:
tell application "Finder"
--your path
set targ_pt to folder of front window
set get_file to item 1 of targ_pt
--get names
set nm to name of get_file
set lg to (length of nm) div 2
set sim_nm to (characters 1 thru lg of nm as text)
--find similar folders
set find_fl to list folder (targ_pt as text) without invisibles
set targ_fl to items of find_fl whose name begins with sim_nm
--move files
if class of get_file is document file then move get_file to folder (targ_pt & targ_fl as text)
end tell