daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top