Skip to content

Instantly share code, notes, and snippets.

@corypina
Last active October 7, 2015 07:58
Show Gist options
  • Save corypina/3131323 to your computer and use it in GitHub Desktop.
Save corypina/3131323 to your computer and use it in GitHub Desktop.
Copy specific file to desktop for attaching to email. I use it for documents I reference or email often.
-- Replace with the file you want to copy
set theFile to "Macintosh HD:Users:path:to:your:file.txt"
-- Replace with the target folder. Or just swap your username in to use the Desktop.
set theDestination to "Macintosh HD:Users:USERNAME:Desktop"
tell application "Finder" to duplicate theFile to theDestination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment