Advertisement
shiftdot515

Rewind 30 seconds.scpt

Jul 27th, 2019
1,628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "iTunes"
  2.    
  3.     if player position is not missing value then
  4.        
  5.         set current_pos to player position
  6.         set mute to true
  7.         set new_pos to current_pos - 30
  8.         if new_pos < 0 then set new_pos to 0
  9.         set player position to new_pos
  10.         set mute to false
  11.        
  12.     end if
  13.    
  14. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement