Permalink
Browse files

Slight tweaks to non-working code

  • Loading branch information...
1 parent 4380a60 commit 80973de9772cffce57621fc27a74b693701c35fa Yehuda Katz committed Jul 19, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 center.applescript
View
@@ -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 - w) / 2), ((screen_height - windowHeight) / 2.0) - desktopTop}
- set size of window 1 to {windowWidth, windowHeight}
+ set position of window 1 to {((screen_width - windowWidth) / 2), ((screen_height - windowHeight) / 2.0) - desktopTop}
+ set size of window 1 to {windowWidth -w, windowHeight}
end tell
end tell

0 comments on commit 80973de

Please sign in to comment.