Copy folder contents

applehelpwriter Feb 15th, 2018 (edited) 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Easy Script to copy contents of a folder from one place to another
  2. --
  3. --
  4. # an applescript
  5. with timeout of 10 * 60 seconds -- 10 minutes
  6.     set src to choose folder with prompt "Choose the folder to copy:"
  7.     set dest to choose folder with prompt "Choose the destination:"
  8.     set src to POSIX path of src
  9.     set dest to POSIX path of dest
  10.     do shell script "ditto " & quoted form of src & " " & quoted form of dest
  12. end timeout
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand