This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
: ${DIALOG_CANCEL=1} | |
IFS=" | |
" | |
UNITS="" | |
for dev in $(cat /dev/sndstat | fgrep '(play'); do | |
unit=$(echo $dev | sed s/^pcm// | sed 's/:.*//') | |
description=$(echo $dev | sed 's/.*<//' | sed 's/>.*//') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VOLNAME="My Cool App" | |
APPNAME=MyCoolApp | |
TARGET_BUILD_DIR=/Users/gonzo/Projects/MyCoolApp/build/Release | |
if [ -e "/Volumes/$VOLNAME" ]; then | |
echo "Detaching old $VOLNAME" | |
hdiutil detach "/Volumes/$VOLNAME" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// newer iTunes seems to prefer "iTunes Media" over "iTunes Music" | |
#define ITUNES_MUSIC @"/Music/iTunes/iTunes Music" | |
#define ITUNES_MEDIA @"/Music/iTunes/iTunes Media" | |
-(NSString*) _getiTunesMediaFolder | |
{ | |
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
[defaults addSuiteNamed:@"com.apple.iTunes"]; | |
NSDictionary *keys = [defaults dictionaryRepresentation]; | |
NSString *key; | |
NSData *aliasData = nil; |