Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save robotsandcake/35fa313f3fdbe5402e219c6187a972f2 to your computer and use it in GitHub Desktop.
This AppleScript when used in conjunction with DragonDictate for Mac will skip to the previous track in iTunes
try
tell application "iTunes"
previous 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