[OS X TeX] Update to 10.9.3 & Applescript TeXShop Macro

Herbert Schulz herbs at wideopenwest.com
Sun May 18 15:21:36 CEST 2014


On May 17, 2014, at 1:53 PM, Michael Sharpe <msharpe at ucsd.edu> wrote:

> I tried without success to replicate the problem you described with TextEdit always opening to show the files to delete. The code says to do this when there are 20 or more such files, which should happen only if delete_files_only_with_same_name is set to false. So, I've left in my newest version, which also includes more error handling for some conditions, and activates TeXShop after opening TextEdit so that the dialog box isn't hidden by another window. Also, just in case someone sets delete_files_only_with_same_name to false, I've deleted "pdf" from the extensions_to_delete list, as that could result in deletion of some of your graphic inclusions. It may make sense to split this into two separate macros, one for "same name" and one for "all in same folder".
> 
> Michael

Howdy,

Hmmm... seems like the version you attached was one of my older versions rather than the one you updated.

In any case I found a bug. If the file name and/or the path, has spaces in the name it won't work. I don't know how to add quotes around the file and path in those cases. I don't, in general, do that but in this case the spaces were actually needed.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list