Created
May 14, 2017 10:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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