shayarnett (owner)

Revisions

gist: 10210 Download_button fork
public
Public Clone URL: git://gist.github.com/10210.git
Embed All Files: show embed
Diff #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/center.applescript b/center.applescript
index 3049271..0dc2ec1 100644
--- a/center.applescript
+++ b/center.applescript
@@ -44,7 +44,7 @@ tell application "System Events"
     on error
       set {w, h} to {0, 0}
     end try
- set position of window 1 to {((screen_width - windowWidth) / 2), ((screen_height - windowHeight) / 2.0) -
+ set position of window 1 to {(((screen_width - windowWidth) / 2) + w), ((screen_height - windowHeight) / 2
     set size of window 1 to {windowWidth -w, windowHeight}
   end tell
 end tell
\ No newline at end of file