[OS X TeX] OT: Applescript help
Alan Munn
amunn at gmx.com
Wed Mar 10 00:15:05 CET 2010
On Mar 9, 2010, at 5:58 PM, Vic Norton wrote:
> Your labeling is what had me buffaloed, Alan. I assumed your
> "csv2latex" did what it says it does---convert "comma separated
> values" to tabular latex data. In fact it does almost nothing to
> "comma separated values". It does convert "tab separated
> values" (like you would copy off of a spreadsheet) to tabular latex
> data. An appropriate name for your routine might be "tsv2latex".
>
> The compiled "csv2latex" does convert "comma separated values" to
> latex tabular data.
>
> Now that I've figured out that I'm supposed to use "tab separated
> values" in TeXShop, "Paste Spreadsheet Cells" works fine---and I do
> appreciate having this tool at my disposal.
Yes, you're right, the basic format is tab separated since it's
designed for cut and paste. Maybe I should just change the name as you
suggest and be done with causing this confusion.
Alan
>
> Regards,
>
> A no longer perplexed Vic
>
>
>
> On Mar 9, 2010, at 12:30 PM, Alan Munn wrote:
>
>>
>> On Mar 9, 2010, at 11:57 AM, Vic Norton wrote:
>>
>>> I'll have to say that the TeXShop "Paste Spreadsheet Cells" macro
>>> is a complete mystery to me. When I run "csv2latex" from terminal
>>> I get what I would expect. Running "Paste Spreadsheet Cells" from
>>> TeXShop with some csv data in the clipboard doesn't give me
>>> anything like tabular data. In effect it just pastes the csv data,
>>> commas and all, into the TeXShop document.
>>
>> Unfortunately there's a naming problem that has arisen. There's
>> another csv2latex program around that converts a csv file to latex
>> table format. Perhaps that's what you have when you run from the
>> command line. My script modifies the contents of the clipboard
>> directly, and now (as Herb notes) should reside within ~/Library/
>> TeXShop/bin
>>
>> Alan
>>
>>>
>>> Obviously I am missing something.
>>>
>>> Regards,
>>>
>>> Vic
>>>
>>>
>>> On Mar 9, 2010, at 10:42 AM, Alan Munn wrote:
>>>
>>>> Hi, this is somewhat off-topic, but ultimately relates to TeXShop.
>>>>
>>>> Someone has requested a change to csv2latex (the script
>>>> underlying the Paste Spreadsheet Cells macro in TeXShop) so that
>>>> the $ character is not escaped (currently, that is the
>>>> behaviour). This is easy to implement with a command line option
>>>> to the ruby script, but I'm struggling with a way of passing that
>>>> option via Applescript. The current Applescript uses "choose from
>>>> list" to present the list of table style options. What I'd like
>>>> to do is add a checkbox to that dialogue corresponding to the
>>>> option, but this doesn't seem to be possible. Can anyone
>>>> familiar with Applescript suggest a way of implementing this?
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Alan
>>>>
>>>> --
>>>> Alan Munn
>>>> amunn at gmx.com
>
> ----------- 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: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
--
Alan Munn
amunn at gmx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20100309/b3caec49/attachment.html>
More information about the macostex-archives
mailing list