Created
July 3, 2018 16:48
-
-
Save xdegtyarev/e4f7ec8971510355214cef65fbd8258e to your computer and use it in GitHub Desktop.
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 "System Events" | |
tell process "Finder" | |
repeat 100 times | |
tell application "Finder" to open trash | |
tell application "Finder" to activate | |
key code 126 | |
key down command | |
key code 51 | |
key up command | |
delay 0.2 -- adjust delay as needed | |
end repeat | |
end tell | |
end tell | |
tell application "Finder" to close every window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment