Advertisement
applehelpwriter

Copy folder contents

Feb 15th, 2018
388
0
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. -- applehelpwriter.com
  3. -- sqwarq.com
  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
  11.    
  12. end timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement