Archive for February, 2007

Script to queue multiple ISO files for unattentive burning.

Friday, February 23rd, 2007

A couple of quick scripts for easily burning all ISO files:

~/bin/burn:

#!/bin/bash
SPEED=8
echo ----------------
ls -l "$1"
echo Burning $1 at $SPEED x
say Insert new disc now!
hdiutil burn -speed $SPEED -forceclose -noaddpmap "$1"
echo Complete.
say Disc burning complete!
say Label. $1
ls -l "$1"
echo ----------------

~/bin/burnall:

#!/bin/bash
find -P . -mindepth 1 -type f -iregex '.*.ISO' -exec burn {} ;

Run burnall to quickly burn all ISO (case-insensitive) files in a directory and any subdirectories. When a disc is done, it will be ejected and you will be alerted with the ’say’ command to retrieve your disc and replace it with a new one, which will continue the burning process. No hunting ISO files down.

If you use MythTV, you could use easily use mythosd to alert your myth frontends that burning is complete.

AppleScript to Restore Window Sizes and Positions

Thursday, February 1st, 2007

After much scouring, cursing, and damning, I’ve cobbled together a script that restores my most-used windows to their proper positions.

Certainly not pretty, but it is AppleScript after all:

(more…)