0

I am new to TexShop and new to this forum so please forgive me if the question is dumb.

I need to convert about 13,800 postscript files to PDF.

TexShop can do it but the only ways I know how means that when I open a bunch of the files to convert automatically, TexShop converts them but leaves them open (displayed on-screen in TexShop) after converting, so the more files that it processes, the more RAM it uses till it exponentially slows too much.

For example, if I get TexShop to convert only 1000 file, the first 500 files takes about 15 minutes, and the next 500 takes about 30 minutes. When it is finished, TexShop is unresponsive (with 1000 open PDFs) and need be forcibly quit.

I presume there must be some way for TexShop to process a file, close it, then move onto the next one automatically but I can't see any obvious way how.

To get it done quicker, I could try smaller batches (say 250 files at a time which only takes 5 minutes) but that would mean a lot of setting up and baby-sitting of the Mac. I figure automating this must be easily doable, maybe in combination with Automator if TexShop can't handle it alone.

Can anyone please assist with this?

I use 2.4 GHz Intel Core 2 Duo MacBook with 6GB RAM.

  • 4
    You can do this by writing a script to cycle through the PS files and convert them to PDF. However, this is completely unrelated to (La)TeX. Why are you using TexShop to convert them in the first place? – Werner Apr 4 '14 at 23:22
  • 1
    I'd research and use ghostscript. – bombcar Apr 4 '14 at 23:22
  • 1
    It will be quicker and easier to do this without TeXShop. The only reason to use TeXShop is because you want to interact with the file via the GUI. You don't. In fact, that just wastes time and resources. A simple script, on the other hand, will open the files without displaying them to you and cycle through the files without wasted resources. Also, you can run the script in the background and do something else with your Mac while it works (should you wish to). Relevant: do the files have sane file names (no spaces or odd characters)? Do you have a list of those names and/or are in one place? – cfr Apr 4 '14 at 23:41
  • 1
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Speravir Apr 4 '14 at 23:52
  • 1
    Assuming you have MacTeX installed, open up a bash prompt, navigate to the folder with the ps files and try for f in *.ps; do epstopdf $i; done – Thruston Apr 4 '14 at 23:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.