• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking 2 folders and copy if new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Program Linking
  • Next by Date: Re: Appending a list to a list and getting one list.
  • Previous by thread: Re: Checking 2 folders and copy if new
  • Next by thread: Re: Checking 2 folders and copy if new
  • Index(es):
    • Date
    • Thread