Guest User

Untitled

a guest
Jan 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Synced movie playback in Mac OS X and Quicktime Player (assuming sync at movie start)
  2.  
  3. -- Play-Pause
  4.  
  5.     tell application "QuickTime Player"
  6.         set isPlaying to (playing of document 1)
  7.         set doc1time to current time of document 1
  8.         tell every document
  9.             if isPlaying then pause
  10.             set current time to doc1time
  11.             if not isPlaying then play
  12.         end tell
  13.     end tell
  14.  
  15. -- Forward 30 Seconds
  16.  
  17.     tell application "QuickTime Player"
  18.         set isPlaying to (playing of document 1)
  19.         set doc1time to current time of document 1
  20.         tell every document
  21.             set current time to doc1time + 30
  22.         end tell
  23.     end tell
  24.  
  25. -- Reverse 10 seconds
  26.  
  27.     tell application "QuickTime Player"
  28.         set isPlaying to (playing of document 1)
  29.         set doc1time to current time of document 1
  30.         tell every document
  31.             set current time to doc1time - 10
  32.         end tell
  33.     end tell
Add Comment
Please, Sign In to add comment