Try breaking up the script into two parts; use the system-events part t set the list, and the original Finder part to do the move.
set originalFolderPath to "Central Storage:Shipping:EDI FILES:tmp:inv tmp:"
set newfolderpath to "Central Storage:Shipping:EDI FILES:Freeway:invoice:"
tell application "System Events"
set fileList to every file in folder originalFolderPath whose visible is true
end tell
tell application "Finder"
repeat with i from 1 to count fileList
set thisFilePath to item i of fileList
if name of thisFilePath ends with "inv.txt" then
duplicate thisFilePath to folder newfolderpath with replacing
end if
end repeat
end tell
Or possibly this:
set originalFolderPath to "Central Storage:Shipping:EDI FILES:tmp:inv tmp:"
set newfolderpath to "Central Storage:Shipping:EDI FILES:Freeway:invoice:"
tell application "System Events"
set fileList to every file in folder originalFolderPath whose visible is true and name ends with "inv.txt"
end tell
tell application "Finder"
repeat with i from 1 to count fileList
set thisFilePath to item i of fileList
duplicate thisFilePath to folder newfolderpath with replacing
end repeat
end tell
-- Michelle
--
--------------------------------------------------------
Misquotation of unattributed, trite
metaphysical saying goes here.
Stupid ascii Unnecessary notice of
graphic goes here. responsibility goes here.
---------------------------------------------------------