The Script:
|
try
tell application "Finder" to copy bounds of desktop's window to screenSize -- Remember: {left, top, right, bottom}
set {LeftPosition, RightPosition, DownPosition} to ({item 1, item 3, item 4} of screenSize)
tell application "BBEdit 6.0" to set bounds of window 1 to {LeftPosition + 2, 41, RightPosition - 1, DownPosition - 1}
on error errMsg number errNo
display dialog "An error has occurred:" & return & return & ¬
errMsg & return & "(error No: " & errNo & ")" with icon caution buttons "OK" default button 1
end try
|