Adium

Ticket #7250 (new enhancement)

Opened 2 years ago

Last modified 12 months ago

Add Quick Look support for Chatlogs

Reported by: moehnetiger Owned by: nobody
Milestone: Good idea for "later" Component: Logging
Version: Severity: normal
Keywords: 10.5, Leopard, Quick Look, chatlogs Cc:
Patch Status:

Description

MacOS X 10.5 aka Leopard has a new feature called  Quick Look. It allows you to preview files without opening any special application. Since the new xml-chatlogs can't be viewed in a web-browser like the old html-chatlogs, it would be nice if we had a Quick Look plugin for them.

Attachments

AdiumChatQuickLook.tgz (12.7 KB) - added by dharris 15 months ago.
Xcode project to create QuickLook plugin for Adium chat files
AdiumChatQuickLook.zip (8.8 KB) - added by dharris 15 months ago.
Adium QuickLook plugin

Change History

Changed 2 years ago by zacw

  • milestone set to Adium X 1.2

Changed 22 months ago by evands

  • milestone changed from Adium X 1.2 to Good idea for "later"

This can not be done publicly until 10.5 is released.

The transform from #6569 plus a WebView might be a good way for someone interested in adding support to write a Quick Look plugin.

Changed 15 months ago by dharris

Xcode project to create QuickLook plugin for Adium chat files

Changed 15 months ago by dharris

I've just uploaded an xcode project file for creating a quicklook plugin. This could be used as a starting point.

To try this out:

  1. Download and unpack the zip file
  2. Build the project in xcode
  3. Create $HOME/Library/QuickLook
  4. Copy AdiumChatQuickLook.qlgenerator to ~/Library/QuickLook
  5. At a command line, type "qlmanage -r" and hit return.

Now when you find an Adium chat log file in Finder (by browsing or via spotlight), you can hit the spacebar and preview up to the first 50 lines of the chat.

Changed 15 months ago by dharris

Adium QuickLook plugin

Changed 15 months ago by dharris

I've also added a compiled version. Unzip the file and drop it into ~/Library/QuickLook (create the directory if it doesn't exist).

Changed 14 months ago by djmori

Changed 12 months ago by jchang

Would someone mind updating this for the whole log instead of 50 lines, and for the new chatlog format in 1.3? Thanks (:

Changed 12 months ago by dharris

I built this plugin in an afternoon. My rationale for only including 50 lines was that it was typically enough data for me to recall the context of the conversation -- and that's how I use QuickLook. I don't use it for reading full Word documents nor do I expect that I can zoom into details of photos.

I also didn't want to have the preview to take too long to load if I were on a long conversation -- QuickLook :-).

I haven't tried the 1.3 betas yet and so don't know how the chat log has changed. If anybody else would like to take this on, I'd be happy to answer questions about the code. My email address has the same username that I have here on gmail.com

Changed 12 months ago by jchang

Well, the chatlog is just a bundle now, and the .xml file simply resides within it. The .xml file itself is the same as the old .chatlog though.

I tried copying some code over from  http://trac.adiumx.com/browser/trunk/Other/Adium%20Spotlight%20Importer/GetMetadataForFile.m?rev=23500 to see if I could have the plugin detect the chatlog type, but since I don't know any Obj-c, I was far from being successful.

Note: See TracTickets for help on using tickets.