Skip to content

Instantly share code, notes, and snippets.

@nummi
Forked from ryanbriones/gist:251748
Created December 8, 2009 16:31
Show Gist options
  • Save nummi/251773 to your computer and use it in GitHub Desktop.
Save nummi/251773 to your computer and use it in GitHub Desktop.
require 'time'
loop do
if Time.now > Time.parse('06:30')
`/usr/bin/open "/Users/ryanbriones/Music/iTunes/iTunes Music/Daft Punk/Discovery/01 One More Time.mp3"`
break
end
puts "#{Time.now} not #{Time.parse('06:30')}"
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment