Created
February 12, 2012 08:56
-
-
Save joeyw/1807388 to your computer and use it in GitHub Desktop.
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/local/bin/macruby | |
framework 'Cocoa' | |
framework 'Foundation' | |
class NotificationHandler | |
def handle(notification) | |
`itunes-update-notification` | |
end | |
end | |
center = NSDistributedNotificationCenter.defaultCenter | |
center.addObserver(NotificationHandler.new, selector:'handle:', name:'com.apple.iTunes.playerInfo', object:nil) | |
NSApplication.sharedApplication | |
NSApp.run |
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/env ruby | |
# | |
# | |
# | |
# Cleans your Queue. | |
require 'app/boot' | |
Play::Queue.clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment