[OS X TeX] Leopard Quick Look & TeX
Jochen Wondracek
jwondracek at macnews.de
Sat Dec 22 10:46:56 CET 2007
Many thanks for the work done by you and the solution which is at
least a work-around after my similar frustrating experience to fix the
problem.
Am 22.12.2007 um 07:48 schrieb Thomas Rike:
> Just wanted to add this to the thread. After 3 weeks of frustration
> working on my own and talking to Apple tech's with no results, I
> have finally found out how to make my MacBookPro OS X 10.5.1
> recognize the altered info.plist for TeXShop and use
> Text.qlgenerator for .tex, .sty, .ind, .bbl, .toc etc. I run
> Cocktail 4.0.1 for Leopard, Select System then Databases. Then
> Rebuild Launch Services database with Restore default file
> associations enabled. About three quarters of the way through
> executing /System/Library/ScriptingAdditions/StandardAdditions.osax/
> Contents/MacOS/uid the .tex files lose the icon when selected, show
> the label "TEX" and can now be viewed with a touch of the space bar.
> What a pleasure.
>
> Unfortunately, when I logout, restart or shutdown, once again, none
> of the org.tug.tex files are registered as public.plain-text and
> only the icon appears. To regain Quick Look capability I have to
> Rebuild Launch Services database. It only takes a few minutes, but I
> would like to automate the process somehow at login, but I have no
> idea how to do this. The real question is what is overriding the
> TeXShop info.plist when Launch Services are starting up?
>
> Hope this helps anyone else who might have been having the problem.
> I expect this will go away in the future, but until then I now know
> how to regain the power and I will probably not log out, shutdown or
> restart too often.
>
>
> On Dec 5, 2007, at 10:59 PM, Thomas Rike wrote:
>
>> Hello again.
>>
>> This is very frustrating, because I had about 5 hours where it
>> worked perfectly. Now I am back to square one. Now none of
>> the .tex, .sty or .cls files generate a quick look. All I get is
>> the icon. I use qlmanage -t foo.tex on the command line and
>>
>> Content type UTI: org.tug.tex. Generator used: None
>>
>> is back with no thumbnail created. <QLGenerator/System/Library/
>> Frameworks/QuickLook.framework/Resources/Generators/
>> Text.qlgenerator> no longer appears.
>>
>> Is there somewhere to look to find what is stopping quicklook from
>> registering a generator for org.tug.tex?
>>
>> Macintosh-3:~ trike$ mdls /Users/trike/Desktop/Untitled.tex
>> kMDItemContentCreationDate = 2007-12-05 22:11:11 -0800
>> kMDItemContentModificationDate = 2007-12-05 22:11:11 -0800
>> kMDItemContentType = "org.tug.tex"
>> kMDItemContentTypeTree = (
>> "org.tug.tex",
>> "public.text",
>> "public.data",
>> "public.item",
>> "public.content"
>> )
>>
>> This is the same output I saw in another email that suggested that
>> this is not correct. Should the public.plain-text show up? I have
>> to admit that I am unclear about how this works.
>>
>> Hopefully someone reading this can suggest something I can try.
>> Since I had the ability for a day, it is even harder to live
>> without it now.
>> Thanks. Tom Rike
>>
>>
>>
>>
>> On Dec 2, 2007, at 2:01 PM, Thomas Rike wrote:
>>
>>> Hope this goes to the correct place in the thread. I am still not
>>> sure how to reply to a thread so that the email shows up in the
>>> correct place. I didn't get any response to this posting, so I
>>> kept going over all of the items in the thread. It looked like I
>>> had done everything correct, but none of the files would generate
>>> thumbnails. Content type UTI: org.tug.tex. Generator used: None
>>> was always the outcome. I finally came across the remark that UTI
>>> was discussed in Developer documentation. When looking at my hard
>>> drive I found that the Developer folder was not there. Apparently
>>> when Leopard is installed the X-Code tools are thrown out, but the
>>> new ones are not installed. So I went to my install disk and
>>> installed the Leopard X-code Tools and as soon as the
>>> installation was over Quicklook began working perfectly on .tex
>>> and .sty files. I don't know what that has to do with X-code
>>> Tools, but qlmanage -t foo.tex now shows:
>>>
>>> Content type UTI: org.tug.tex. Generator used: <QLGenerator/System/
>>> Library/Frameworks/QuickLook.framework/Resources/Generators/
>>> Text.qlgenerator>
>>>
>>> Thanks for the pointers (Especially Adam and Herb), Tom Rike
>>>
>>> On Dec 1, 2007, at 9:32 PM, Thomas Rike wrote:
>>>>
>>>> Sorry for the delay. I have been away all day and am just getting
>>>> back to my computer. Thanks for your patience. Here are the
>>>> results of the terminal commands.
>>>>
>>>> mdls /Users/trike/Desktop/quicktest.tex
>>>> kMDItemContentCreationDate = 2007-11-30 21:13:38 -0800
>>>> kMDItemContentModificationDate = 2007-11-30 21:17:29 -0800
>>>> kMDItemContentType = "org.tug.tex"
>>>> kMDItemContentTypeTree = (
>>>> "org.tug.tex",
>>>> "public.text",
>>>> "public.data",
>>>> "public.item",
>>>> "public.content"
>>>> )
>>>> kMDItemDisplayName = "quicktest.tex"
>>>> kMDItemFSContentChangeDate = 2007-11-30 21:17:29 -0800
>>>> kMDItemFSCreationDate = 2007-11-30 21:13:38 -0800
>>>> kMDItemFSCreatorCode = "TeXs"
>>>> kMDItemFSFinderFlags = 0
>>>> kMDItemFSHasCustomIcon = 0
>>>> kMDItemFSInvisible = 0
>>>> kMDItemFSIsExtensionHidden = 0
>>>> kMDItemFSIsStationery = 0
>>>> kMDItemFSLabel = 0
>>>> kMDItemFSName = "quicktest.tex"
>>>> kMDItemFSNodeCount = 0
>>>> kMDItemFSOwnerGroupID = 501
>>>> kMDItemFSOwnerUserID = 501
>>>> kMDItemFSSize = 692
>>>> kMDItemFSTypeCode = "TEXT"
>>>> kMDItemKind = "TeX Document"
>>>> kMDItemLastUsedDate = 2007-11-30 21:32:24 -0800
>>>> kMDItemUsedDates = (
>>>> 2007-11-30 00:00:00 -0800
>>>> )
>>>>
>>>> Macintosh-3:~ trike$ qlmanage -r
>>>> 2007-12-01 21:03:15.361 qlmanage[334:10b] Resetting all generators
>>>>
>>>> Macintosh-3:~ trike$ qlmanage -t /Users/trike/Desktop/quicktest.tex
>>>> 2007-12-01 21:05:43.222 qlmanage[340:10b] Testing quicklookd
>>>> thumbnails with files:
>>>> (
>>>> "/Users/trike/Desktop/quicktest.tex"
>>>> )
>>>> 2007-12-01 21:05:43.230 qlmanage[340:10b] [QL] Succesfully
>>>> activated built-in quicklookd sandbox profile
>>>> 2007-12-01 21:05:43.263 qlmanage[340:4503] [QL] Thumbnailing /
>>>> Users/trike/Desktop/quicktest.tex (128 x 128). Content type UTI:
>>>> org.tug.tex. Generator used: <QLGenerator Void>
>>>> 2007-12-01 21:05:43.266 qlmanage[340:5203] [QL] Registering
>>>> <QLGenerator Built-in> for public.image
>>>> ----cut---- A LOT OF REGISTERING TO VARIOUS APPLICATIONS FROM
>>>> SAFARI TO ICAL TO MAIL TO IWORK ...
>>>> 2007-12-01 21:05:43.331 qlmanage[340:5203] [QL] Registering
>>>> <QLGenerator /Applications/LaTeX/LaTeXApps/BibDesk.app/Contents/
>>>> Library/QuickLook/BibDesk.qlgenerator> for
>>>> net.sourceforge.bibdesk.bdskcache
>>>> 2007-12-01 21:05:43.333 qlmanage[340:5203] [QL] Registering
>>>> <QLGenerator /Applications/LaTeX/LaTeXApps/BibDesk.app/Contents/
>>>> Library/QuickLook/BibDesk.qlgenerator> for
>>>> net.sourceforge.bibdesk.bib
>>>> 2007-12-01 21:05:43.334 qlmanage[340:4e03] [QL] Thumbnailing /
>>>> Users/trike/Desktop/quicktest.tex. Content type UTI: org.tug.tex.
>>>> Generator used: None
>>>> 2007-12-01 21:05:43.334 qlmanage[340:4503] [QL] Thumbnailing for /
>>>> Users/trike/Desktop/quicktest.tex done (No image created).
>>>> 2007-12-01 21:05:43.335 qlmanage[340:4503] No thumbnail created
>>>> for file://localhost/Users/trike/Desktop/quicktest.tex
>>>>
>>>> The bottom line is that no image is created. Any advice is
>>>> welcome. Thanks, Tom
>>>>
>>>> On Nov 30, 2007, at 10:34 PM, Adam R. Maxwell wrote:
>>>>
>>>>>
>>>>> On Nov 30, 2007, at 10:03 PM, Thomas Rike wrote:
>>>>>
>>>>>> I agree it is very explicit, but it isn't working for me.
>>>>>> I have added, using BBEdit.app,
>>>>>> <string>public.plain-text</string>
>>>>>> to the UTTypeConformsTo</key> <array>
>>>>>> After saving: moving TeXShop.app, logging off, shutting down,
>>>>>> and using touch on the command line were all unable to cause
>>>>>> Quick Look to view any of my .tex files as text. Have I missed
>>>>>> the point? Thanks for any advise.
>>>>>
>>>>> That sounds right. What is the output of the following in
>>>>> Terminal:
>>>>>
>>>>> 1) `mdls /path/to/file.tex`
>>>>> 2) `qlmanage -r /path/to/file.tex`
>>>>>
>>>>> where /path/to/file.tex comes from dropping a .tex file on
>>>>> Terminal?
>>>>>
>>>>> --
>>>>> adam
>>
>>
>
> Thomas Rike
> Oakland High School Mathematics Department(Ret.)
> 1023 MacArthur Blvd.
> Oakland, CA 94610
> Phone: 510-879-3040 (ext 216)
> FAX: 510-879-3049
>
>
>
>
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20071222/795fc007/attachment.bin>
More information about the macostex-archives
mailing list