Re: Checking 2 folders and copy if new
Re: Checking 2 folders and copy if new
- Subject: Re: Checking 2 folders and copy if new
- From: Lachlan Deck <email@hidden>
- Date: Tue, 14 May 2002 17:10:20 +1000
Hi again,
left out a little option for cp which preserves mod dates etc.
From: Lachlan Deck <email@hidden>
<snip>
on copy_files(fromF, toF, theList)
set thePath to (POSIX path of fromF) as string
set theStr to "cd " & thePath & "; cp -p"
repeat with i from 1 to the number of items in theList
set theStr to theStr & " " & ((item i of theList) as string)
end repeat
set theStr to theStr & " " & ((POSIX path of toF) as string)
do shell script theStr
end copy_files
<snip>
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.