Main  |  Next
AppleScript Logo

Expand Window To Full Screen

Script for: BBEdit
Copyright: Free, use at your own risk!
Description: Expands the frontmost window in BBEdit to full screen.
Necessary: None
Download: WindowToFullScreen.hqx
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

 


Contact: Matthias Steffens  |  Previous  |  Main  |  Next  |  Last Updated: 23-Sep-00