From 61c652c6ab0d56352e59455266ca1d649ba244d6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 29 Mar 2016 21:24:48 +0000 Subject: scanpages (29mar16) git-svn-id: svn://tug.org/texlive/trunk@40177 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/scanpages/replicate.plist | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/doc/latex/scanpages/replicate.plist') 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='" -- cgit v1.2.3