[OS X TeX] Update to 10.9.3 & Applescript TeXShop Macro
msharpe at ucsd.edu
Sun May 18 12:10:31 EDT 2014
On May 18, 2014, at 6:21 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 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".
> 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.
I changed "run" to "run.xml" in extensions_to_delete and added code that works with filenames having embedded spaces. This time I'm attaching the correct file.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3926 bytes
Desc: not available
More information about the MacOSX-TeX