Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Save as max.applescript.
- - Open quicksilver
- - press 'cmd+,' (preferences)
- - select triggers
- - add hotkey
- - drag the script from finder to the new trigger
- - save
- - doubleclick in the 'trigger' column
- - set a trigger key
- - done
- set display_y_size to 1200
- set cur_app to (path to frontmost application as Unicode text)
- if cur_app ends with ":Finder.app:" then
- set Finder to true
- tell application "Finder"
- set tool_vis to toolbar visible of front window
- end tell
- else
- set Finder to false
- end if
- tell application cur_app
- tell front window
- set {x1, y1, x2, y2} to (get bounds)
- if Finder then
- -- Finder uses inside of frame for bounds, not counting toolbar
- if tool_vis then
- set y1 to 83
- else
- set y1 to 44
- end if
- -- Explicit y size of your display
- set y2 to display_y_size - 5
- else
- set y1 to 22
- set y2 to display_y_size
- end if
- set bounds to {x1, y1, x2, y2}
- end tell
- end tell
Add Comment
Please, Sign In to add comment