Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. diff --git a/center.applescript b/center.applescript
  2. index 3049271..0dc2ec1 100644
  3. --- a/center.applescript
  4. +++ b/center.applescript
  5. @@ -44,7 +44,7 @@ tell application "System Events"
  6. on error
  7. set {w, h} to {0, 0}
  8. end try
  9. - set position of window 1 to {((screen_width - windowWidth) / 2), ((screen_height - windowHeight) / 2.0) -
  10. + set position of window 1 to {(((screen_width - windowWidth) / 2) + w), ((screen_height - windowHeight) / 2
  11. set size of window 1 to {windowWidth -w, windowHeight}
  12. end tell
  13. end tell
  14. \ No newline at end of file
Add Comment
Please, Sign In to add comment