diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/scanpages/replicate.plist')
-rw-r--r-- | Master/texmf-dist/doc/latex/scanpages/replicate.plist | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/scanpages/replicate.plist b/Master/texmf-dist/doc/latex/scanpages/replicate.plist index 04beb49b623..fa40293b5a1 100644 --- a/Master/texmf-dist/doc/latex/scanpages/replicate.plist +++ b/Master/texmf-dist/doc/latex/scanpages/replicate.plist @@ -20,9 +20,14 @@ property trimitems : {" ", tab, linefeed, return} set lf to linefeed set cr to return set crlf to cr & lf -
set oldtid to text item delimiters
tell application "TeXShop" to set s to content of selection of document 1
set tmp to (paragraphs of s) + +set oldtid to text item delimiters +tell application "TeXShop" to set s to content of selection of document 1 +set tmp to (paragraphs of s) set text item delimiters to {lf} -set s to (tmp as text)
set text item delimiters to "%Repetitions="
set tmp to (text items of s) +set s to (tmp as text) +set text item delimiters to "%Repetitions=" +set tmp to (text items of s) set text item delimiters to oldtid if not ((count of tmp) = 2) then display dialog "Bailing! The selection does not contain exactly one '%Repetitions='" |