Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (19 sloc) 0.783 kB
22294a2 @topfunky Cleanup and removal of unused scripts.
authored
1 -- AUTHOR: Geoffrey Grosenbach http://peepcode.com
2
5ceeff5 @topfunky Notes
authored
3 -- Put frontmost window on left side
303334a @topfunky Modifications of rakefile to build all scripts, and other tweaks.
authored
4
a99c776 @topfunky Increase to 1100 instead of 1000. Most sites expect greater than 1000…
authored
5 set windowWidth to 1100
6
6dce727 @topfunky Use Finder method for determining screen size instead of Safari (fast…
authored
7 -- Works with most setups
8 tell application "Finder"
445e237 @topfunky Extra script to move window to left monitor in my current setup
authored
9 set {screen_left, screen_top, screen_width, screen_height} to bounds of window of desktop
edf1eea @topfunky Use screen-sensitive sizing, with Safari measurements
authored
10 end tell
11
6dce727 @topfunky Use Finder method for determining screen size instead of Safari (fast…
authored
12 -- NOTE This may work better with some multi-monitor setups
13 -- tell application "Safari"
14 -- set screen_width to (do JavaScript "screen.availWidth" in document 1)
15 -- set screen_height to (do JavaScript "screen.availHeight" in document 1)
16 -- end tell
17
303334a @topfunky Modifications of rakefile to build all scripts, and other tweaks.
authored
18 tell application "System Events"
19
22294a2 @topfunky Cleanup and removal of unused scripts.
authored
20 set myFrontMost to name of first item of (processes whose frontmost is true)
303334a @topfunky Modifications of rakefile to build all scripts, and other tweaks.
authored
21
22 tell process myFrontMost
a99c776 @topfunky Increase to 1100 instead of 1000. Most sites expect greater than 1000…
authored
23 set size of window 1 to {windowWidth, screen_height}
303334a @topfunky Modifications of rakefile to build all scripts, and other tweaks.
authored
24 set position of window 1 to {0, 20}
25 end tell
26
edf1eea @topfunky Use screen-sensitive sizing, with Safari measurements
authored
27 end tell
Something went wrong with that request. Please try again.