slow moving
slow moving
- Subject: slow moving
- From: John McAdams <email@hidden>
- Date: Wed, 29 Nov 2000 15:30:42 -0700
Below is a little script I wrote to sort through a bunch of dropped
folders and combine like files together in a central folder. But it
is slooooow. Does anybody recommend another way for moving files
around.
TIA
jmc
--test folder names and move files
on move_foldContents(parent_folder)
tell application "Finder"
set sub_folds to every folder of parent_folder
repeat with i in sub_folds
if name of i ends with "100-D" or name of i
ends with "100-F" then
if (count of every file of i) > 0 then
move every file of i to
Combined_100 with replacing
end if
else if name of i ends with "120-D" or name
of i ends with "120-F" then
if (count of every file of i) > 0 then
move every file of i to
Combined_120 with replacing
end if
else if name of i ends with "150-D" or name
of i ends with "150-F" then
if (count of every file of i) > 0 then
move every file of i to
Combined_150 with replacing
end if
else if name of i ends with "280-D" or name
of i ends with "280-F" then
if (count of every file of i) > 0 then
move every file of i to
Combined_280 with replacing
end if
else if name of i ends with "335-D" or name
of i ends with "335-F" then
if (count of every file of i) > 0 then
move every file of i to
Combined_335 with replacing
end if
end if
end repeat
end tell
end move_foldContents