Adium

Ticket #7250 (new enhancement)

Opened 3 years ago

Last modified 3 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: Needs Dev Review

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 2 years ago.
Xcode project to create QuickLook plugin for Adium chat files
AdiumChatQuickLook.zip (8.8 KB) - added by dharris 2 years ago.
Adium QuickLook plugin
AdiumChatQuickLook.qlgenerator.zip (14.2 KB) - added by jhagman 6 months ago.
Working QuickLook plugin.
AdiumChatQuickLook.2.zip (23.6 KB) - added by jhagman 6 months ago.
Project for building the QuickLook plugin
AdiumChatQuickLook.3.zip (23.5 KB) - added by jhagman 6 months ago.
Project file, supports current and previous format.
AdiumChatQuickLook.qlgenerator.2.zip (14.4 KB) - added by jhagman 6 months ago.
QuickLookGenerator, supports current and previous format.
AdiumChatQuickLook.qlgenerator.3.zip (18.0 KB) - added by jhagman 6 months ago.
Latest version of the QL plugin binary
AdiumChatQuickLook.4.zip (25.7 KB) - added by jhagman 6 months ago.
The project archive.

Change History

Changed 3 years ago by zacw

  • milestone set to Adium X 1.2

Changed 3 years 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 2 years ago by dharris

Xcode project to create QuickLook plugin for Adium chat files

Changed 2 years 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 2 years ago by dharris

Adium QuickLook plugin

Changed 2 years 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 22 months ago by djmori

Changed 20 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 20 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 20 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.

Changed 6 months ago by jhagman

I got the QuickLookPlugin working. It looks ugly, but works now.

The previous xcode project was just inches from touchdown. I just

* Updated the project to generate 64/32 bit plugin * fixed the code so that XML is read from the actual xml file and not the directory

Changed 6 months ago by jhagman

Working QuickLook plugin.

Changed 6 months ago by jhagman

Project for building the QuickLook plugin

Changed 6 months ago by mathuaerknedam

Can you make it also work with old (non-bundle/dir chatlog) logs? How about the (really) old AdiumHTMLLog files?

Changed 6 months ago by jhagman

The non-bundle ones should be easy, I'll do that now. I would need an example of the really old files to see what to do with them.

Changed 6 months ago by jhagman

OK, I think I have the non bundle ones working now. I'll see the really old files tomorrow.

Changed 6 months ago by jhagman

Project file, supports current and previous format.

Changed 6 months ago by jhagman

QuickLookGenerator, supports current and previous format.

Changed 6 months ago by jhagman

Now works with all the three formats. Still does not look good, but good enough for me. Also the html and xml logs look different. I hope this at least serves as a starting point for further work.

Changed 6 months ago by jhagman

Latest version of the QL plugin binary

Changed 6 months ago by jhagman

The project archive.

Changed 6 months ago by mathuaerknedam

I can confirm that it works for all three log versions.

Anyone know if there are other logs variants to parse?

Changed 4 months ago by Robby

  • patch_status set to Needs Dev Review

Changed 3 months ago by assetburned

it would be cool if it could place in the adium installer.

Note: See TracTickets for help on using tickets.