[OS X TeX] Update to 10.9.3 & Applescript TeXShop Macro
Eric van der Oord
eric.vanderoord at gmail.com
Sun May 18 19:04:50 CEST 2014
Beginners question : Why are the files attached in this thread "plist" files and not "scpt" files ?
Le 18 mai 2014 à 18:10, Michael Sharpe <msharpe at ucsd.edu> a écrit :
> 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.
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives