-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresize_windows
executable file
·65 lines (52 loc) · 1.63 KB
/
resize_windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/osascript
tell application "Finder"
set _b to bounds of window of desktop
set _width to item 3 of _b
set _height to item 4 of _b
end tell
if _width is equal to 1920 then
try
tell application "NetNewsWire"
activate
set the bounds of the first window to {10, 25, 1550, 1200}
end tell
end try
try
tell application "iTunes"
activate
set the bounds of the first window to {10, 25, 1550, 1200}
end tell
end try
try
tell application "TextMate"
activate
set the bounds of the first window to {310, 25, 1650, 1200}
end tell
end try
try
tell application "Firefox"
activate
set the bounds of the first window to {10, 25, 1650, 1200}
end tell
end try
end if
if _width is equal to 1440 then
try
tell application "Firefox"
activate
set the bounds of the first window to {10, 25, 1250, 820}
end tell
end try
try
tell application "NetNewsWire"
activate
set the bounds of the first window to {10, 25, 1250, 820}
end tell
end try
try
tell application "iTunes"
activate
set the bounds of the first window to {10, 25, 1250, 820}
end tell
end try
end if