Skip to content

Instantly share code, notes, and snippets.

@kellec
Created June 22, 2013 09:01
Show Gist options
  • Save kellec/5840059 to your computer and use it in GitHub Desktop.
Save kellec/5840059 to your computer and use it in GitHub Desktop.
Applescript to capture the current frame in VLC (using the snapshot function in the app) and advance to the next frame. It'll keep going until it hits the specified end time, which you have to set in the script itself.
global endTime
set starttime to 2510
set endTime to 2528
on captureAndStep()
tell application "VLC" to activate
tell application "System Events"
keystroke "s" using {command down, option down}
keystroke "e"
end tell
end captureAndStep
on checkTime()
tell application "VLC"
set elapsed to current time
end tell
if elapsed < endTime then
captureAndStep()
checkTime()
end if
end checkTime
checkTime()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment