set folder_to_AdWatchEX to ((path to application support as text) & "AdWatchEX" & ":Temporary Files")
--1.make a new folder
--2.copy AdWatchEX folder to thename folder on desktop
set thedate to current date
set thename to month of thedate & "_" & day of thedate & "_" & hours of thedate & minutes of thedate & seconds of thedate & "_adwatch_indd_log_backup" as string
tell application "Finder"
make new folder at desktop with properties {name:thename}
if exists folder folder_to_AdWatchEX then
duplicate folder_to_AdWatchEX to thename
empty trash
else
return 0
empty trash
end if
end tell
I am not able to get copy items to destination folder by above script, further I want only .indd files in “Temporary Files” top get copied