SHARE
TWEET

Rewind 30 seconds.scpt

shiftdot515 Jul 27th, 2019 105 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top