justinnichols.com

Apple

Snow Leopard – Automator – Remove .svn and .DS_Store

by justin on Jul.12, 2010, under Apple, Programming

Here are the shell scripts for removing .svn and .DS_Store when using an Automator Service script. Just make sure to set the service receive selected to pass files/folders and to do so “As Arguments”.

.svn

for f in "$@"
do
find "$f" -name .svn -print0 | xargs -0 chflags -R nouchg
find "$f" -name .svn -print0 | xargs -0 rm -fr
done

.DS_Store

for f in "$@"
do
find "$f" -name .DS_Store -print0 | xargs -0 rm -fr
done

Now once you save the scripts, you will have a right click contextual item in Finder for folders/files to be able to remove .svn folders and .DS_Store files. I suggest these two scripts be two separate automator workflows and not combined.

Leave a Comment more...

Mac Mini Fan Constantly Running?

by justin on Feb.12, 2010, under Apple, Tech

Did you recently upgrade your hard drive, or RAM in your mac mini?  I did, and I found out that the fan constantly ran simply because I forgot to reconnect the fan control wire (thermal wire).  Below is my mac mini spec:

And here is a shot of the fan wire that needed to be plugged in.

When pulling apart the mini, that cable has to be unplugged.  It’s very easy to forget you did it.  Therefore, if you have to open the mini up again, don’t pull it apart, all you have to do is remove the frame, and then you have access to the wire to plug it in.  Hope you have small fingers :)

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...