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


Click here to return to the 'Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Applescript
Authored by: sjonke on Jan 29, '03 11:31:35AM
Here is a simple applescript which will bump the play count of the currently playing song and go to the next. Great for use with the Keyspan Digital Media Remote or via the Script Menu.
tell application "iTunes"
	set player position to (finish of current track) - 0.01
	play
end tell
This script sets the playing position to be 1/100th of a second prior to the end of the song and then starts play (you can remove the "play" command if you don't want the script to work even when iTunes is not actively playing a song.)

[ Reply to This | # ]
Applescript
Authored by: Thom on Feb 13, '03 08:07:03PM

This was also pretty helpful when I used Michael Kamprath's Keyboard Maestro iTunes Control to map my TiBook's F3 / F4 to prev/next track, but minding the play count.

cd /Applications/Utilities/path/to/KeyboardMaestro/etc/

open ./Keyboard Maestro.app/Contents/Resources/Keyboard Maestro Engine.app/Contents/Resources/iTunesControl.scpt

He advised changing the method called iTunesNextTrack. Made sense to me. :)

I also set F6 (the mute key) to toggle play/pause. Hurrah!



[ Reply to This | # ]