Skip to content

Instantly share code, notes, and snippets.

@robotsandcake
Created May 14, 2017 10:06
Show Gist options
  • Select an option

  • Save robotsandcake/f9e03ae09282919d4452941f1ce03f01 to your computer and use it in GitHub Desktop.

Select an option

Save robotsandcake/f9e03ae09282919d4452941f1ce03f01 to your computer and use it in GitHub Desktop.
This AppleScript when used in conjunction with DragonDictate for Mac skips to the next track in iTunes
try
tell application "iTunes"
next track
-- user probably expects to hear something so if we are not playing, make it play
if player state is not playing then
play
end if
end tell
on error -- if there is an error then beep
beep
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment