Originally Posted By: artie505
so I'm wondering whether there's any way to both have my cake and eat it, i.e. prevent the images from being created/cached and not see all those Console messages?

A periodic script to nuke them is probably the easiest:

rm -f ~/Library/Caches/com.apple.Safari/Webpage\ Previews/*

Use launchd to drive it (or an AppleScript scheduled with iCal maybe).

--

Hmm, launchd is a pain sometimes. It won't operate in such a way that allows using the tilde (~) or the asterisk (*) like we can on the command line, and in scripts. So we can't feed it that exact line (which only removes files), but instead we would have to remove the whole folder. [i.e., if we were going for a "launchd-only" solution.] And i'm not sure how Safari will act if the folder is there one minute and gone the next.

So the way we'd need to do it is to put that command in a shell script, and then call that script with launchd.



Last edited by Hal Itosis; 11/20/10 08:33 PM.