Last active
October 7, 2015 07:58
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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