This file contains 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
#!/usr/bin/env bash | |
# Echo some information to STDOUT as well as show a growl notification if available | |
function notify { | |
if [[ -f /usr/local/bin/growlnotify ]]; then | |
echo $1 | /usr/local/bin/growlnotify "Updating WebKit" | |
fi | |
echo $1 | |
} | |
This file contains 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
#!/usr/bin/env python | |
# usage: python getDefaultAppForURL.py 'http://' 'ftp://' 'afp://'... | |
from LaunchServices import LSGetApplicationForURL, kLSRolesViewer | |
from Foundation import NSURL | |
from sys import argv | |
for arg in argv[1:]: | |
url = NSURL.URLWithString_(arg) | |
if url == None: continue |
NewerOlder