Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Rewind & fast forward' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Rewind & fast forward
Authored by: jermudgeon on May 14, '03 05:08:01PM

Try this:

tell application "iTunes"
    rewind
end tell

Then update the original play/pause code:

tell application "iTunes"
	set theState to player state
	if theState is fast forwarding or theState is rewinding then
		resume
	else
		playpause
	end if
end tell

The same works for 'fast forward', also.

There's code in a previous comment on how to not launch iTunes if it's not currently running.

It's possible to use the same key for rewind/resume:

tell application "iTunes"
	set theState to player state
	if theState is playing then
		rewind
	else
		resume
	end if
end tell


[ Reply to This | # ]