Share Pastebin
Guest
Public paste!

gkra

By: a guest | Aug 16th, 2007 | Syntax: AppleScript | Size: 0.30 KB | Hits: 465 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  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