[OS X TeX] batch file renaming

Adam R. Maxwell amaxwell at mac.com
Tue Apr 18 04:46:15 CEST 2006


On Apr 17, 2006, at 19:34, Themis Matsoukas wrote:

> ...this is not entirely OT:
>
> I want to rename a bunch of files from foo.EPS to foo.eps, so that  
> I can open them in TeXShop and save them as pdf. What's a quick way  
> to do it? I could open the files in Preview and save them as pdf  
> but it prompts me each time where I want the pdf saved and that's a  
> chore, since I have quite a few files to convert. On the other  
> hand, TeXShop saves the pdf file automatically making the  
> conversion easier, except that it does not recognize the  
> capitalized extension .EPS. Hence my need for a quick way to rename  
> files. I found a script in Library/Scripts/Finder Scripts/ that  
> almost does what I wanted, but I had to change the extension first  
> from .EPS to .whatever and then to .eps.
>
> Is there a more elegant way?

If you can lowercase the entire title, Automator has a Finder action  
that will do this, or you can do it in Terminal with `apply epstodpf  
*.EPS`.  I'll also insert a shameless plug for BatchRenamer <http:// 
homepage.mac.com/amaxwell/BRhome/>, which allows you to rename files  
with regular expressions and a few other handy things.

-- 
Adam
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list