Created
April 5, 2013 22:12
-
-
Save phinze/5323078 to your computer and use it in GitHub Desktop.
delete all files in a folder with applescript ouch my eyezzzzzzzz
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
tell application "Finder" | |
set the appfiles to files in folder (POSIX file "/tmp/somefolder" as text) | |
repeat with appfile in appfiles | |
delete appfile | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment