[OS X TeX] Update to 10.9.3 & Applescript TeXShop Macro
Herbert Schulz
herbs at wideopenwest.com
Mon May 19 07:18:14 EDT 2014
On May 18, 2014, at 1:05 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
> On May 18, 2014, at 12:57 PM, Michael Sharpe <msharpe at ucsd.edu> wrote:
>
>>
>> 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.
>>>>
>>>> Michael
>>>>
>>>>
>>>> <DeleteAux.plist>
>>>
>>> Howdy,
>>>
>>> Works as advertised! Thanks very much.
>>>
>>> I couldn't pick out what you changed to quote the file names.
>>>
>>
>> The lines
>>
>> 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.
>>
>> Michael
>
> Howdy,
>
> Ahhh... now I see. I was looking for a place where " are placed around the file name.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
Howdy,
Sigh... just ran into a file with a root name that contained ( and ); rm doesn't like that.
Is there a way to surround each of the file names in the final list to delete with double quotes? That would solve all of these quirks at once.
Sorry to keep noticing these niggling things.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list