Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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