Skip to content

Instantly share code, notes, and snippets.

@gingi
Created July 3, 2012 20:08
Show Gist options
  • Save gingi/3042641 to your computer and use it in GitHub Desktop.
Save gingi/3042641 to your computer and use it in GitHub Desktop.
BBEdit Script: Duplicate Lines
tell application "BBEdit"
tell window 1
set start_line to startLine of selection
set end_line to endLine of selection
select (lines start_line thru end_line)
set selectionCopy to duplicate selection
select insertion point after selection
set selection to selectionCopy
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment