Guest User

Untitled

a guest
May 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Save as max.applescript.
  2. - Open quicksilver
  3. - press 'cmd+,' (preferences)
  4. - select triggers
  5. - add hotkey
  6. - drag the script from finder to the new trigger
  7. - save
  8. - doubleclick in the 'trigger' column
  9. - set a trigger key
  10. - done
  11.  
  12. set display_y_size to 1200
  13.  
  14. set cur_app to (path to frontmost application as Unicode text)
  15. if cur_app ends with ":Finder.app:" then
  16. set Finder to true
  17. tell application "Finder"
  18. set tool_vis to toolbar visible of front window
  19. end tell
  20. else
  21. set Finder to false
  22. end if
  23.  
  24. tell application cur_app
  25. tell front window
  26. set {x1, y1, x2, y2} to (get bounds)
  27. if Finder then
  28. -- Finder uses inside of frame for bounds, not counting toolbar
  29. if tool_vis then
  30. set y1 to 83
  31. else
  32. set y1 to 44
  33. end if
  34. -- Explicit y size of your display
  35. set y2 to display_y_size - 5
  36. else
  37. set y1 to 22
  38. set y2 to display_y_size
  39. end if
  40. set bounds to {x1, y1, x2, y2}
  41. end tell
  42. end tell
Add Comment
Please, Sign In to add comment