Categories
Tips and Tricks Uncategorized

Fix (Error code -36) on OS X with dot_clean

The error stems from the way OS X stores files.  If you have ever seen Apple files on a PC, you may have seen files beginning with a “._” dot-underscore.  While this problem was seen on Snow Leopard, I recently saw this issue after trying to use Migration Assistant to transfer a user multiple times. […]

Categories
Tips and Tricks Uncategorized

List Open Files By User

The command lsof  lists open files.  However, even if you use the -u option to show files open by just the user, there is a lot of files used in the background that you don’t really know about.  I wanted to parse this down to get just the files I had open in the GUI. Below […]

Categories
System Administration Uncategorized

There Is Hope Yet…

YouTube Drops Flash

Categories
System Administration Uncategorized

Apple Remote Desktop Not Finding Computers? Try This

Apple Remote Desktop has become flaky over the last few versions of OS X.  Apple isn’t really working on it anymore.  It is still a great tool, but often, it will have difficulties finding computers on the network.  Here is what I do to make it work a little better.

Categories
Automation Uncategorized

Batch Rotate Photo Files With Hazel and sips

If you have a ton of photos that are all facing the wrong direction and don’t want to do them individually, you can use Hazel to automatically go through a folder and rotate the images for you.  All it takes is a one-line bash script and a Hazel rule. sips -r 90 “$f” This rotates the image 90 […]

Categories
Automation Uncategorized

Trigger Scripts Via Dropbox And Hazel

I haven’t found a great use for this yet, but you can have your Mac automatically run a script by simply creating a file/folder in your Dropbox.  To do this, you need to set up Hazel to watch your Dropbox folder for a certain file/folder, and if it appears, trigger a script.  You could also […]

Categories
Automation Uncategorized

OS X Mail: Create HTML-formatted Auto-response With AppleScript and Rules

Do you respond to a lot of emails with the same or similar content?  You can use Apple’s Mail app to do this for you automatically with some AppleScript and email rules.  Hopefully, you already know about the privacy glitch associated with Apple’s Mail program and Spotlight and have disabled the indexing of your emails.  If […]

Categories
System Administration Uncategorized

Generate Random Number With Bash Script

I use this script to generate random numbers.  This is useful if something needs a random time delay (for network performance issues) or choosing a random selection from a case  statement. #!/bin/bash RANGE=90 number=$RANDOM let “number %=$RANGE” echo “$number is a random number less than $RANGE”

Categories
Automation Uncategorized

Reduce And Resize Dropbox Camera Uploads Automatically With Hazel

I usually use my iPhone to take pictures for my Website and then upload them via the Dropbox app so they appear on my computer.  This is a nice feature, but the photos are way too large to use on a Website.  Instead of opening each one in Preview, scaling it down and saving it. […]

Categories
System Administration Uncategorized

AppleScript: Quit All Applications

I often use this script with ARD to quit all open apps.  Useful for when some malevolent students sets every app to open at login.