Created
May 2, 2010 21:40
-
-
Save kch/387477 to your computer and use it in GitHub Desktop.
Rewind currently playing track 30 seconds in iTunes
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 ruby1.9 | |
# encoding: UTF-8 | |
require 'appscript' | |
include Appscript | |
itunes = app("iTunes") | |
pos = itunes.player_position.get | |
pos = pos > 30 ? pos - 30 : pos / 2 | |
itunes.player_position.set pos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome for podcasts (like you have in iPhone, etc).
I bind that to
⌘3
with FastScripts, and you should too.