Cutting a line and adding to a the end of a new line (BBEDIT

I have code text like this in BBEDIT:

Newspaper-somewhere america
This is the caption of the photo and needs to be on line 1 with line one text blah, blah

I need to select line 1, cut it so that line 2 moves up to line 1, then add the line 1 code to the end of line 2 so it’s all on line 1. Also adding a space at the end of line 2 before pasting the line 1 content.

Anyone up for it?

thanks. Brandon

Yeah, I’m up for it… 8)

set theInput to "Newspaper-somewhere america
This is the caption of the photo and needs to be on line 1 with line one text blah, blah"

set {pOne, pTwo} to {(paragraph 1 of theInput), (paragraph 2 of theInput)}

set theOutput to (pTwo & " " & pOne) as string

j