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
# Using applescript, sets the focus + foreground on a window by its title | |
# That works on OSX 10.7.5. | |
# @author Aurelien Scoubeau <[email protected]> | |
import argparse | |
import subprocess | |
parser = argparse.ArgumentParser(description='Utility to activate a window by title, for OSX') | |
parser.add_argument('title', help='Title of the window to activate') | |
args = vars(parser.parse_args()) |
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
#!/usr/bin/python | |
# TODO make range command line arguments | |
import sys, codecs | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) # if your terminal can't do utf-8, well... | |
import time | |
import urllib2 | |
import BeautifulSoup |