Posts tagged: osx

Wine Launcher GUI "frontend" for Mac OS X

By , 2009-12-31 12:31

Yesterday I installed Wine 1.1 on my Mac using MacPorts. It works great, however it’s not as well integrated as wine on Linux or CrossOver on Mac. What I mean by this is that it’s not possible to double-click a Windows EXE and have it open with wine. So I made a quick and dirty app using Platypus ( to allow me to launch Windows executables directly from Finder.

Simple FLAC to MP3 shell script

By , 2009-09-10 21:41

For unix-like systems (Mac OS X, Linux). A simple shell script to convert flac to lame mp3.

Install flac, lame and id3tool

for a in *.flac
OUTLAME=`echo "$a" | sed s/\.flac$/.mp3/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
YEAR=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`
flac -c -d "$a" | lame -m j -q 0 --vbr-new -V 0 -s 44.1 - "$OUTLAME"
id3tool --set-title="$TITLE" --set-track="${TRACKNUMBER:-0}" --set-artist="$ARTIST" --set-album="$ALBUM" --set-year="$YEAR" --set-genre="${GENRE:-12}" "$OUTLAME"

Edit: Apparently this has been done before…

Custom theme by me. Based on Panorama by Themocracy