Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created March 15, 2013 10:02
Show Gist options
  • Save follesoe/5168754 to your computer and use it in GitHub Desktop.
Save follesoe/5168754 to your computer and use it in GitHub Desktop.
Droplet to loop videos dropped on the application

Apple Script Droplet to loop videos in QuiclkTime

This Apple Script is a droplet that will open any file dropped on it, and set looping to true before playing it in QuicklTime. It is usefull for opening small videos, for instance from Vine, and loop them.

Installation

Start AppleScript Editor, and paste the LoadVid script into it. Compile the script, and save it as an Application (File Format dropdown). Save it into your Application folder (or desktop). Drag the droplet onto your Application Dock.

Usage

Drag and drop video files onto the droplet to open video. It works from other applications as well (i.e. dragging videos from iMessage).

on open of target_files
set theMovie to target_files
tell application "QuickTime Player"
activate
open theMovie
set the looping of document 1 to true
play document 1
end tell
end open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment