Spotlight question

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
furqan8421
Harmless
Posts: 18
Joined: Wed Mar 23, 2005 10:17 pm

Spotlight question

Post by furqan8421 »

Spotlight seems to favor iChat logs over Adium logs whenever i try to search for anything. Anyone else experience this and know how to fix it?
User avatar
TheSilverFox06
Grandé
Posts: 770
Joined: Fri Dec 03, 2004 10:16 pm
Location: St. Paul, MN

Post by TheSilverFox06 »

The only way I could think of would be to create a Spotlight plugin for Adium logs so it distinguishes them from regular html files, but I have no idea how to do that.
furqan8421
Harmless
Posts: 18
Joined: Wed Mar 23, 2005 10:17 pm

Post by furqan8421 »

have you noticed the same thing?
JediL1
Harmless
Posts: 24
Joined: Tue May 03, 2005 4:09 am
Contact:

Post by JediL1 »

The reason Spotlight seems to favor iChat logs over Adium .html files is that the criteria for the sorting in the listing is "Date Last Opened".

iChat seems to attach the date and time of when the Chat window was closed to the log as the "Date Last Opened". Adium Logs currently don't do this.

That's why Adium Logs show up at the bottom of the searches with "No Date" as the entry for "Date Last Opened". Hope the devs can add that bit of code to attach that meta data to Adium Logs.
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

Some ideas for making the log format more amenable to spotlight, plus some other enhancements, are under consideration.
User avatar
Damienoneill
Frappa
Posts: 116
Joined: Tue May 10, 2005 9:10 pm
Location: University of Kent

Post by Damienoneill »

That would be cool! Also i like the idea of spotlighting contacts. (I.E Right click on a contact and it spotlights there email/full name)
User avatar
TheSilverFox06
Grandé
Posts: 770
Joined: Fri Dec 03, 2004 10:16 pm
Location: St. Paul, MN

Post by TheSilverFox06 »

Something else you could do is set up an automator action to add spotlight comments to all of your logs that would make them show up under a spotlight search.

Edit: I'm actually working on making that workflow right now. I'll post it when I'm done if it's successful.

Edit 2: It's done! When it asks you to choose a file/folder, choose ~/Library/Application Support/Adium 2.0/Users/Default/Logs

When it asks you to enter spotlight comments, just enter whatever you want to be added (I just said "log"). Automator will add this to the spotlight comments of every file and folder contained within the Logs folder (this can take a while depending on how many logs you have). Then, you can search for something, and just include the word you entered. For instance, If I search for "blah log" or "log blah", then spotlight will show any Adium logs with the word "blah" in it.

Get it here

Disclaimer: I am not part of the Adium team. Run this application at your own risk.
User avatar
rooskee
Harmless
Posts: 8
Joined: Sat Dec 04, 2004 2:44 am
Location: Atlanta, GA
Contact:

Post by rooskee »

thanks silverfox
Post Reply