My goal is to delete the saME PARAGRAPHS in a series of TXT files the paragraphs I need to delete are always the same
beginig from par at line 9, then . line 7 then line 3 I use this script: *tell* *application* "BBEdit" *set* theLineNumber *to* *line* 9 *of* *text window* 1 *set* theLineReference *to* (*line* theLineNumber *of* *text document* 1) *delete* *every* *character* *of* theLineReference *set* theLineNumber *to* *line* 7 *of* *text window* 1 *set* theLineReference *to* (*line* theLineNumber *of* *text document* 1) *delete* *every* *character* *of* theLineReference *set* theLineNumber *to* *line* 3 *of* *text window* 1 *set* theLineReference *to* (*line* theLineNumber *of* *text document* 1) *delete* *every* *character* *of* theLineReference *end* *tell* However I always get this error *error* "BBEdit got an error: macOS error code: -1702" number -1702 I choose to delete from the last line (Line 9) of my document hoping to get the others to continue deleting However I don't understand the error Is there a way to fix this? ThaNKS A LOT -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <https://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bbedit.
