[OS X TeX] Update to 10.9.3 & Applescript TeXShop Macro
msharpe at ucsd.edu
Sun May 18 19:57:05 CEST 2014
On May 18, 2014, at 9:33 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> On May 18, 2014, at 11:10 AM, Michael Sharpe <msharpe at ucsd.edu> wrote:
>> 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.
> Works as advertised! Thanks very much.
> I couldn't pick out what you changed to quote the file names.
set text item delimiters to space
set ti to (text items of froot)
set text item delimiters to "\\ "
set froot to (ti as text)
set text item delimiters to tid
have the effect of replacing all spaces in froot (the root name of the tex file) with backslash backslash space, so that, after the command reaches the shell, you are left with entries like
name\ with\ spaces.aux
which will be correctly interpreted by unix utilities like ls and rm.
More information about the macostex-archives