Divvy
Brisa
Layout ótimo
AppleScriptsparasalvarerestaurarasdimensõespadrão
Salvarlimites.scpt
trysettextitemdelimiterstospacetellapplication(pathtofrontmostapplicationastext)setbto(boundsofwindow1)astextsetntonameendtelldoshellscript"a=" & quoted form of n & "
f=~/Notes/bounds.txt
touch \"$f\"
sed -i '' \"/^$a: /d\" \"$f\"
echo \"$a: " & b & "\" >> \"$f\""
end try
Restaurar Bounds.scpt
try
tell application (path to frontmost application as text)
set n to name
set s to do shell script "sed -En s/^" & quoted form of n & "': (.*)/\1/p' ~/Notes/bounds.txt"
set bounds of window 1 to words of s
end tell
end try
AppleScript para redimensionar janelas para dimensões específicas
try
tell application "Finder" to set {0, 0, dtw, dth} to bounds of window of desktop
tell application (path to frontmost application as text) to tell window 1
set b to bounds
set w to (item 3 of b) - (item 1 of b)
set h to (item 4 of b) - (item 2 of b)
set b to {dtw - w, (dth - h) / 2, dtw, dth - (dth - h) / 2}
set bounds to b
end tell
end try