Automator action with delay

Anyone know how i can move f.ex. 20 files from one folder to another with 30 seconds deley between each file move ? The files are going into a refining process that needs to be finished before the next file arrives.

Would like to choose the folder that holds the files and select the destination folder.

PB 17, Cube, Mini, PM G4, Mac Pro, Mac OS X (10.4.2)

Posted on Jan 30, 2007 12:13 PM

Reply
4 replies

Jan 30, 2007 9:47 PM in response to Karl Sigvart Arnesen

Open the Script Editor in the /Applications/AppleScript/ folder and enter the following:

set source_folder to (choose folder with prompt "What is the source folder?")
set destination_folder to (choose folder with prompt "What is the destination folder?")
tell application "Finder"
repeat with this_item in (get files of source_folder)
duplicate this_item to destination_folder
delay 30-- time in seconds
end repeat
end tell

Press the Run button in the Script Editor to use the script.

(19560)

Jan 30, 2007 11:43 PM in response to Karl Sigvart Arnesen

Try using:

set source_folder to (choose folder with prompt "What is the source folder?")
set destination_folder to (choose folder with prompt "What is the destination folder?")
tell application "Finder"
repeat with this_item in (get files of source_folder)
set the newfile to (duplicate this_item to destination_folder)
repeat
if not exists the newfile then
exit repeat
else
delay 1
end if
end repeat
end tell

(19566)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automator action with delay

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.