TextWrangler: Duplicate lines

I’m trying to find the correct syntax to match this processing of duplicate lines in TextWrangler:

Matching all
Duplicates to new document
Match using pattern: ^.*?\t
Entire match

There is an error in:

process duplicate lines {match mode:matching_all, match pattern:"^.*?\\t", match subpattern key:entire_match} output options {duplicates to new document:true}

What am I doing wrong here?

Hi. You missed referencing the first option.


tell application "TextWrangler"'s document 1
	process duplicate lines duplicates options {match mode:matching_all, match pattern:"^.*?\\t", match subpattern key:entire_match} output options {duplicates to new document:true}
end tell

Thank you.