Skip to content

Instantly share code, notes, and snippets.

@chbeer
Created November 7, 2013 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chbeer/7352922 to your computer and use it in GitHub Desktop.
Save chbeer/7352922 to your computer and use it in GitHub Desktop.
AppleScript that sends keystrokes to SimCap.app to stop a running recording and to save the movie to temp.mov
-- Uses System Events' keystrokes to start a recording in SimCap.app
-- SimCap: http://www.jaml.co.uk/simcap/
tell application "SimCap"
activate
tell application "System Events"
tell process "SimCap"
keystroke "r" using {command down}
delay 1.0
keystroke "s" using {command down}
tell sheet 1 of window 1
set value of text field 1 to "temp.mov"
tell button "Save" to click
end tell
keystroke "w" using {command down}
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment