Re: (Dis)Honor Saved State:Window Position

24 views
Skip to first unread message

Christopher Stone

unread,
Jun 6, 2013, 4:56:32 PM6/6/13
to bbe...@googlegroups.com
On Jun 06, 2013, at 10:40, Damon Holzborn <damonh...@gmail.com> wrote:
Is there a way to turn off the saving of window positions so that all documents open in the default position instead of their last saved state? I can no longer find that preference, which I believe used to be under Preference -> Text Files.
______________________________________________________________________

Hey Damon,

I think not but am not certain.

In any case there's a work-around.

--
Best Regards,
Chris

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2013-06-06 : 15:42
# dMod: 2013-06-06 : 15:53
# Appl: BBEdit
# Task: Bounds of front window to clipboard, set bounds of front/all window(s).
# Libs: None
# Osax: None
# Tags: @Applescript, @BBEdit, @Bounds, @Front, @Window
-------------------------------------------------------------------------------------------

# Position and size a window the way you want it.
# Run this script.
# Paste the clipboard into an Applescript Editor window.
# Grab the bracketed list and insert it into one of the scripts below.

tell application "BBEdit"
set winBounds to bounds of front window
end tell
try
winBounds as number
on error e
set AppleScript's text item delimiters to {"{", "}"}
set the clipboard to "set bounds of front window to {" & (text item 2 of e) & "}"
end try

-------------------------------------------------------------------------------------------

# Set bounds of front window only:

set _bounds to {303, 44, 1617, 1196}
tell application "BBEdit"
set bounds of front window to _bounds
end tell

-------------------------------------------------------------------------------------------

# Set bounds of EVERY window:

set _bounds to {303, 44, 1617, 1196}
tell application "BBEdit"
set bounds of windows to {303, 44, 1617, 1196}
end tell

-------------------------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages