Hi,
I am trying to move a named folder into a newly created folder with a given name; I can create the new named folder, but can’t move the existing one into it. Can anyone help; I am including the while script for you to see what I might be doing wrong (or right).
Thanks.
Script:
set xf to "folderX" set the_folder to alias "Drive1: Backup Folder:"
set destination_folder to the_folder
copy ((offset of (the month of (current date)) in ¬
"jan feb mar apr may jun jul aug sep oct nov dec ") + 3) / 4 ¬
as integer to mo if mo < 10 then copy "0" & mo as string to mo copy day of (current date) to da
if (day of (current date) < 10) then copy "0" & da as string to da
copy mo & "/" & da & "/" & (year of (current date) as string) to shortDate
tell application "Finder"
get shortDate as string
make new folder at destination_folder with properties {name:shortDate}
delay 2
try
list folder of alias "Drive1: Backup Folder:"
if folder xf exists then
select folder xf of destination_folder
move selection to destination_folder
end if
end try
end tell
Thanks again for your help.