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

Herbert Schulz herbs at wideopenwest.com
Tue Sep 27 14:34:18 CEST 2011


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)






More information about the macostex-archives mailing list