[OS X TeX] MacOSX-TeX Digest, Vol 47, Issue 18

Claus Gerhardt claus.gerhardt at uni-heidelberg.de
Tue Sep 27 08:47:06 EDT 2011


No, its a plain string, the * command will probably work.

Claus


On Sep 27, 2011, at 14:34, Herbert Schulz wrote:

> 
> On Sep 27, 2011, at 5:21 AM, Claus Gerhardt wrote:
> 
>> Add these commands to the script, where 20 is an upper bound for the number of asy files it has not to be precise.
>> 
>> Claus
>> 
>> set i to 1 as number
>> 	set n to 20
>> 	repeat while i < (n + 1)
>> 		try
>> 			set j to i as string
>> 			set shellScript to "cd " & dirName & ";"
>> 			set shellScript to shellScript & "rm -f  " & baseName & "-" & j & ".asy"
>> 			do shell script shellScript
>> 			
>> 		end try
>> 		try
>> 			set j to i as string
>> 			set shellScript to "cd " & dirName & ";"
>> 			set shellScript to shellScript & "rm -f  " & baseName & "-" & j & ".pdf"
>> 			do shell script shellScript
>> 			
>> 		end try
>> 		
>> 		set i to (i + 1)
>> 	end repeat
>> 
> 
> Howdy,
> 
> Thanks Claus. I assume that the "-*.asy", etc., wouldn't work? Is the final command presented to the system as a single quoted string so there is no expansion of the *?
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)
> 
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 
> 




More information about the MacOSX-TeX mailing list