0
I like to store ichat transcripts for a few days so that if I forget something referenced in a chat I can refer back to it. However, after a week or so, I would prefer these transcripts be deleted. Is it possible to automate this process? How?
0
I like to store ichat transcripts for a few days so that if I forget something referenced in a chat I can refer back to it. However, after a week or so, I would prefer these transcripts be deleted. Is it possible to automate this process? How?
1
I guess there are many ways, but because OSX is UNIX based you can use the good ol' crontab and some bash scripting.
Code inside the sh file:
#!/bin/bash
$days_old=7
find "~/Documents/iChats" -type f -mtime +$days_old -exec rm -f {} \;
Open crontab configuration:
crontab -e
Add and save:
0 * * * * <path to delete_old_transcripts.sh>
In what format are iChat logs stored on disk? Maybe it's just a simple
find
program call scheduled usingcron
or a Launch Agent. What have you tried so far? – Daniel Beck – 2013-03-29T18:59:33.900