Am trying to do the following:
I have a file with 20,000+ lines that needs to be broken up into individual files containing 500 lines each. Need to do this every month or so from updated master file.
The script that I writing only selects one line, not the sequence of 500 I need.
tell application “BBEdit 6.1 for OS X”
activate
select display_line 1 of text window 1
select display_line 500 of text window 1
make new text window with properties {contents:selection}
save text window 1 to file “Larkin:Users:da:Sites:01.txt”
end tell