Category Archives: OS X

How to deal with Spaces in Filenames?

As an AppleScripter, you always have to deal with the creativity of your users regarding filenames. A simple fact of life. AppleScript is handing you the tools on a silver platter. So, let’s deal with it.

Download additional content for FCPX and Motion 5

The new Final Cut Pro X is available in the App Store as of now. Some of the complaints I read in the usual channels circled around the fact that the supplied templates for Final Cut Pro X and Motion 5 seem to be smaller in weight as usual. Do not despair young padwan, help […]

Logging with launchd

Apple switched from cron to launchd a while ago, but the fact that launchd allows you to log the output of your program or script quite easily seems to be shrouded in mystery for no apparent reason. Do you know how to create/write logfiles using launchd-plists? If not, read on.

OS X: Go to (certain) Pref-Panes fast

Did you know that there is a shortcut to open certain panes in System Preferences in OS X? If you want to open the Sound-Pane in System Preferences then try this key combination: ⌥ – any of the keycaps to modify the volume on your Mac The same goes for the Monitors-Pane: ⌥ – keycap […]

Tip: Launching Dashboard via AppleScript

Just a short tip: Your Dashboard in OS X contains up to the minute information about things that are of interest to you, right? I use a script to launch iTunes and Mail in the morning while making coffee, the other thing I launch every morning is the Dashboard to get an overview of things […]

OS X: Daylight Savings Time switch and launchd

The end of the Daylight Time is near, this year, the switch takes place on November 2nd, to be precise. Usually no biggie, but Europe switched back last weekend and I switched a couple of jobs from cron to launchd, as prescribed by Apple, during the year on servers located in Europe. cron, the one […]

OS X Server: Reset diradmin’s Password

The admin-password does not work with the diradmin-account? First things first: Don’t panic! There might be a way out of this. What happened? The passwords for the administrative account on OS X Server, I’m talking about the one created during installation, and the diradmin-account are the same, right? Are you sure? They probably are, if […]

OS X: Capturing Packets

Being kind of “Solaris-infested” at times (a.k.a. old habits die hard), I had a hard time capturing network-packets on OS X the other day. Not the capturing in itself, but remembering to use tcpdump instead of snoop. The command I was looking for was sudo tcpdump host [ip-address] It lists the packets as they go […]

OS X: The Location for “Folder Action Scripts”

Since it bit me a couple of days ago: The AppleScripts to be used as Folder Actions must be stored in ~/Library/Scripts/Folder Action Scripts or /Library/Scripts/Folder Action Scripts. The former is the location for Scripts available to the user of the account, the latter for all users of a machine. Don’t get fooled by the […]

OS X: Repairing Permissions from the Command-Line

Just a quick tip: Repairing the permissions on an OS X disk can be done from the command-line as well. The only caveat, you have to know the device of the volume. Getting the right device is easy: diskutil list The device-node in question is in the column titled IDENTIFIER. The device-path to use is […]