Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "System Events"
  2.     set currentapp to item 1 of (get name of processes whose frontmost is true)
  3. end tell
  4.  
  5. tell application currentapp
  6.     tell front window
  7.         if zoomable then
  8.             if zoomed then
  9.                 set zoomed to false
  10.             else
  11.                 set zoomed to true
  12.             end if
  13.         end if
  14.     end tell
  15. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement