Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Events"
- set procs to file of processes whose visible is true
- end tell
- repeat with proc in procs
- set proc to proc as text
- try
- tell application proc to set (miniaturized of windows whose miniaturizable is true) to true
- end try
- end repeat
- tell application "Finder" to set collapsed of windows to true
- tell application "LINE" to quit
- try
- do shell script "killall 'iPhone Simulator' 2> /dev/null"
- end try
- try
- tell application "Anki" to quit
- tell application "iTunes" to quit
- end try
- delay 5
- tell application "Anki" to activate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement