diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-29 21:24:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-29 21:24:48 +0000 |
commit | 61c652c6ab0d56352e59455266ca1d649ba244d6 (patch) | |
tree | d0af0720070116c664d5848da7c4ec5c5c79909a /Master/texmf-dist/doc/latex/scanpages/replicate.plist | |
parent | 86d055cf3a39706e11cf2f143633f70879052726 (diff) |
scanpages (29mar16)
git-svn-id: svn://tug.org/texlive/trunk@40177 c570f23f-e606-0410-a88d-b1316a301751
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='" |