Guest User

Untitled

a guest
Feb 22nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. tell application "System Events" to ¬
  2. get every window of ¬
  3. (every process ¬
  4. whose background only is false ¬
  5. and visible is true ¬
  6. and class of windows contains window) ¬
  7. whose value of attribute "AXMinimized" is false
  8.  
  9. osascript
  10. -e 'tell application "System Events"'
  11. -e ' get every window of (every process ¬'
  12. -e ' whose background only is false ¬'
  13. -e ' and visible is true ¬'
  14. -e ' and class of windows contains window) ¬'
  15. -e ' whose value of attribute "AXMinimized" is false'
  16. -e 'end tell'
  17.  
  18. window bash - Can I use AppleScript to detect if there are any windows on screen? - Ask Different of application process Safari, window ~ — osascript /Users/CK — ttys000 — ⌘1 of application process Terminal, window Untitled 2 of application process Script Editor, window Messages of application process Script Editor
Add Comment
Please, Sign In to add comment