Skip to content

Instantly share code, notes, and snippets.

@meiamsome
Created October 27, 2016 10:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meiamsome/5d29d7ec999f1e4e3f609b0748101f05 to your computer and use it in GitHub Desktop.
Save meiamsome/5d29d7ec999f1e4e3f609b0748101f05 to your computer and use it in GitHub Desktop.
Formats Premier Shortcuts as per Taran's video
# Script to process file as per https://www.youtube.com/watch?v=gF-f25dRbo8
# Outputs to test.txt by default.
# Inputs as files on command line
import fileinput
if __name__ == "__main__":
output = 'test.txt'
with open(output, 'w') as f:
f.writelines(list(name + "&" + key.replace('+',' ') + "\n" for name, *keys in (line.strip().split('\t') for line in fileinput.input()) for key in keys))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment