Created
July 13, 2013 09:08
-
-
Save ChrisLundquist/5990111 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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