text
stringlengths
0
15.7k
source
stringlengths
6
112
set wnList to {windowNumber}
windowSize.applescript
log "windowSize(" & xsize & ", " & ysize & ", " & xpos & ", " & ypos & ", " & leftmargin & ", " & rightmargin & ", " & topmargin & ", " & bottommargin & ", " & appName & ", " & windowNumber & ", " & monPosX & ", " & monPosY & "," & resize & "," & moveformon_flag & "," & debug_level & ")"
windowSize.applescript
display dialog "windowSize(" & xsize & ", " & ysize & ", " & xpos & ", " & ypos & ", " & leftmargin & ", " & rightmargin & ", " & topmargin & ", " & bottommargin & ", " & appName & ", " & windowNumber & ", " & monPosX & ", " & monPosY & "," & resize & "," & moveformon_flag & "," & debug_level & ")"
windowSize.applescript
if USE_SIDEBAR and moveformon_flag then
windowSize.applescript
set moveForMonScpt to scriptPath & "moveForMon.scpt"
windowSize.applescript
set moveformon to load script file moveForMonScpt
windowSize.applescript
moveformon's moveformon({all:false})
windowSize.applescript
set getCurrentFrameScpt to scriptPath & "getCurrentFrame.scpt"
windowSize.applescript
set gcf to load script file getCurrentFrameScpt
windowSize.applescript
set cf to gcf's getCurrentFrame(monPosX, monPosY, vframes)
windowSize.applescript
set cf to gcf's getCurrentFrame(item 1 of winPos, item 2 of winPos, vframes)
windowSize.applescript
if cf is 0 then
windowSize.applescript
set cf to gcf's getCurrentFrame(item 1 of winPosRT, item 2 of winPosRT, vframes)
windowSize.applescript
set cf to gcf's getCurrentFrame(item 1 of winPosLB, item 2 of winPosLB, vframes)
windowSize.applescript
set cf to gcf's getCurrentFrame(item 1 of winPosRB, item 2 of winPosRB, vframes)
windowSize.applescript
log "current frame"
windowSize.applescript
log cf
windowSize.applescript
display dialog "current frame"
windowSize.applescript
display dialog cf
windowSize.applescript
set frames to rb's getKeyValue(vframes, item 1 of cf)
windowSize.applescript
set frame to item (item 2 of cf) of frames
windowSize.applescript
if direction is not "" then
windowSize.applescript
set fname to item 1 of cf
windowSize.applescript
set nout to item 2 of cf
windowSize.applescript
set nleft to length of rb's getKeyValue(vframes, "left_frames")
windowSize.applescript
set nright to length of rb's getKeyValue(vframes, "right_frames")
windowSize.applescript
set ntop to length of rb's getKeyValue(vframes, "top_frames")
windowSize.applescript
set nbottom to length of rb's getKeyValue(vframes, "bottom_frames")
windowSize.applescript
if direction is "LEFT" then
windowSize.applescript
if fname is "main_frames" then
windowSize.applescript
if nleft > 0 then
windowSize.applescript
set frame to item 1 of rb's getKeyValue(vframes, "left_frames")
windowSize.applescript
else if fname is "left_frames" then
windowSize.applescript
if nleft > nout then
windowSize.applescript
set frame to item (nout + 1) of rb's getKeyValue(vframes, "left_frames")
windowSize.applescript
else if fname is "right_frames" then
windowSize.applescript
if nout is 1 then
windowSize.applescript
set frame to item 1 of rb's getKeyValue(vframes, "main_frames")
windowSize.applescript
set frame to item (nout - 1) of rb's getKeyValue(vframes, "right_frames")
windowSize.applescript
else if direction is "RIGHT" then
windowSize.applescript
if nright > 0 then
windowSize.applescript
set frame to item 1 of rb's getKeyValue(vframes, "right_frames")
windowSize.applescript
if nright > nout then
windowSize.applescript
set frame to item (nout + 1) of rb's getKeyValue(vframes, "right_frames")
windowSize.applescript
set frame to item (nout - 1) of rb's getKeyValue(vframes, "left_frames")
windowSize.applescript
else if direction is "UP" then
windowSize.applescript
if ntop > 0 then
windowSize.applescript
set frame to item 1 of rb's getKeyValue(vframes, "top_frames")
windowSize.applescript
else if fname is "top_frames" then
windowSize.applescript
if ntop > nout then
windowSize.applescript
set frame to item (nout + 1) of rb's getKeyValue(vframes, "top_frames")
windowSize.applescript
else if fname is "bottom_frames" then
windowSize.applescript
set frame to item (nout - 1) of rb's getKeyValue(vframes, "bottom_frames")
windowSize.applescript
else if direction is "DOWN" then
windowSize.applescript
if nbottom > 0 then
windowSize.applescript
set frame to item 1 of rb's getKeyValue(vframes, "bottom_frames")
windowSize.applescript
if nbottom > nout then
windowSize.applescript
set frame to item (nout + 1) of rb's getKeyValue(vframes, "bottom_frames")
windowSize.applescript
set frame to item (nout - 1) of rb's getKeyValue(vframes, "top_frames")
windowSize.applescript
set dPosX to gf's getFrameOriginX(frame)
windowSize.applescript
set dPosY to gf's getFrameOriginY(frame)
windowSize.applescript
set dWidth to gf's getFrameWidth(frame)
windowSize.applescript
set dHeight to gf's getFrameHeight(frame)
windowSize.applescript
log "svs(" & dPosX & ", " & dPosY & ", " & dWidth & ", " & dHeight & ")"
windowSize.applescript
display dialog "svs(" & dPosX & ", " & dPosY & ", " & dWidth & ", " & dHeight & ")"
windowSize.applescript
set gtflag to 0
windowSize.applescript
if USE_SIDEBAR then
windowSize.applescript
tell process "GeekTool Helper"
windowSize.applescript
set topWindow to window GEEKTOOL_WINDOW
windowSize.applescript
set gtPos to position of topWindow
windowSize.applescript
set gtflag to 1
windowSize.applescript
set geekToolWidth to 0
windowSize.applescript
if gtflag is 1 then
windowSize.applescript
set gtsvs to gf's getVisibleFrame(item 1 of gtPos, item 2 of gtPos)
windowSize.applescript
set gtdPosX to gf's getFrameOriginX(gtsvs)
windowSize.applescript
set gtdPosY to gf's getFrameOriginY(gtsvs)
windowSize.applescript
if dPosX is gtdPosX and dPosY is gtdPosY then
windowSize.applescript
set gtSize to size of topWindow
windowSize.applescript
set geekToolWidth to item 1 of gtSize
windowSize.applescript
set geekToolWidth to geekToolWidth + GEEKTOOL_MARGIN -- additional margin
windowSize.applescript
set dWidth to dWidth - geekToolWidth
windowSize.applescript
repeat with wn in wnList
windowSize.applescript
set topWindow to item wn of (every window whose focused is true)
windowSize.applescript
set topWindow to window wn
windowSize.applescript
set wpos to {dPosX + leftmargin + xpos * dWidth, dPosY + topmargin + ypos * dHeight}
windowSize.applescript
set wsize to {xsize * dWidth - leftmargin - rightmargin, ysize * dHeight - topmargin - bottommargin}
windowSize.applescript
log "wpos(" & item 1 of wpos & ", " & item 2 of wpos & ")"
windowSize.applescript
log "wsize(" & item 1 of wsize & ", " & item 2 of wsize & ")"
windowSize.applescript
display dialog "wpos(" & item 1 of wpos & ", " & item 2 of wpos & ")"
windowSize.applescript
display dialog "wsize(" & item 1 of wsize & ", " & item 2 of wsize & ")"
windowSize.applescript
log "preoperties before= "
windowSize.applescript
log properties
windowSize.applescript
set position to wpos
windowSize.applescript
if resize is 1 then
windowSize.applescript
set size to wsize
windowSize.applescript
set winSize to size
windowSize.applescript
if item 1 of winSize > (item 1 of wsize) + 10 or item 2 of winSize > (item 2 of wsize) + 10 then
windowSize.applescript
set size to {100, 100}
windowSize.applescript
end windowSize
windowSize.applescript
windowSize({})
windowSize.applescript