Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created July 13, 2013 09:08
Show Gist options
  • Save ChrisLundquist/5990111 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/5990111 to your computer and use it in GitHub Desktop.
tell application "System Events"
set visible of process "StarCraft II" to true
end tell
do shell script "open \"/Users/clundquist/Library/Application Support/Blizzard/StarCraft II/Accounts/1454200/1-S2-1-501405/Replays/Multiplayer/Derelict Watcher TE (208 Balance v11).SC2Replay\""
delay 2
tell application "QuickTime Player"
set replayRecording to new screen recording
tell replayRecording
start
delay 15
stop
end tell
delay 3
set newDoc to last item of documents
tell newDoc
# FIXME
save in ":Macintosh HD:tmp:starcraft"
export in ":Macintosh HD:tmp:starcraft_export.m4v" using settings preset "1080p"
end tell
end tell
tell application "System Events" to tell process "StarCraft II"
key code 109 #F10
keystroke "q"
end tell
tell application "System Events"
set visible of process "StarCraft II" to false
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment