Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kch
Created May 2, 2010 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kch/387477 to your computer and use it in GitHub Desktop.
Save kch/387477 to your computer and use it in GitHub Desktop.
Rewind currently playing track 30 seconds in iTunes
#!/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
@kch
Copy link
Author

kch commented May 2, 2010

Awesome for podcasts (like you have in iPhone, etc).

I bind that to ⌘3 with FastScripts, and you should too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment