--------------------------------------------------------
# Auth: Christopher Stone { Building upon work by Jean Jourdain }
# dCre: 2021/11/24 20:41
# dMod: 2021/11/24 20:41
# Appl: BBEdit
# Task: Attempt to reposition the working line to the top 25% of the working document.
# : Restores the cursor position or the selection if there is one.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @BBEdit, @Reposition, @Cursor, @Selection
--------------------------------------------------------
try
tell application "BBEdit"
tell first window
set selectedText to its selection
tell its first document
select insertion point after its text
select selectedText
end tell
end tell
end tell
on error aMessage
display alert aMessage
end try
--------------------------------------------------------