Advertisement
Guest User

Untitled

a guest
Apr 6th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "System Events"
  2.     set procs to file of processes whose visible is true
  3. end tell
  4.  
  5. repeat with proc in procs
  6.     set proc to proc as text
  7.     try
  8.         tell application proc to set (miniaturized of windows whose miniaturizable is true) to true
  9.     end try
  10. end repeat
  11.  
  12. tell application "Finder" to set collapsed of windows to true
  13.  
  14. tell application "LINE" to quit
  15.  
  16. try
  17.     do shell script "killall 'iPhone Simulator' 2> /dev/null"
  18. end try
  19.  
  20. try
  21.     tell application "Anki" to quit
  22.     tell application "iTunes" to quit
  23. end try
  24.  
  25. delay 5
  26.  
  27. tell application "Anki" to activate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement