Subscribe to
NSLog(); Header Image

Old Adium Logs

This script made short work of 58 "out of date" Adium log folders:

property logsFolder : "Gaia:Users:iacas:Library:Application
set cutoffDate to ( (current date) - (90 * days) )
tell application "Finder"
set folderList to (folders of folder logsFolder)
repeat with i from 1 to count of folderList
set AliasPath to item i of folderList as alias
set folderMod to modification date of (info for AliasPath)
if folderMod

Note: that first line is wrapped so it'll fit better on this page. Don't wrap your logsFolder if you use this script.

6 Responses to "Old Adium Logs"

  1. Why would you want to delete old logs? You never know when they may become useful and it's not like they take up gigs of space...

  2. Well, if I haven't talked to someone in 90 days, then I don't need them around. Keeping them around clutters searches (ahhh, grep), makes the popup list in Adium quite unusable, etc.

  3. Didn't I do that in a comment to this entry that was deleted by you?

  4. The only posts I've deleted have been rude ones or duplicates, so no. I've modified a few, like yours above, to fix links as well.

    Regardless, thanks for pointing out again a bug that still exists in the AppleScripting section of Mac OS X. I should try this on Panther…

  5. *shrug* I posted the code you made some smart ass remark about double posting.

    Either way I don't think it's a bug in AppleScripting for Mac OS X, since it doesn't work in OS 9.

    Also remember that the Finder scripting dictionary is ancient compared to a lot of the Mac OS X application and work s under different, old style, rules.

  6. It's a confirmed bug. Thanks for playing. 😐