Skip to content

Instantly share code, notes, and snippets.

@jbflow
Created December 14, 2023 02:21
Show Gist options
  • Save jbflow/cf05cea01ac201df1e4aa4af4c842b5d to your computer and use it in GitHub Desktop.
Save jbflow/cf05cea01ac201df1e4aa4af4c842b5d to your computer and use it in GitHub Desktop.
Reads the Ableton log.txt file continuously and outputs all Remote Script related messages. Takes the live version as an argument. Needs Python 3 installed to run
#!/usr/bin/python3
# Reads Live logs in log.txt, supply with live version as argument
# chmod +x read_live_logs.py
# sudo cp read_live_logs.py /usr/local/bin
# Create an alias for quicker useage
# cd ~/.
# vim .zshrc
# Press i
# alias rll="read_live_logs.py"
# Press Esc
# type :wq
# Press Enter
# Now you can read the log.txt file of any live version from terminal by typing rll x.x.x
# Make sure to replace x.x.x with the live version
from pathlib import Path
home = Path.home()
from sys import argv
path = f'{home}/Library/Preferences/Ableton/Live {argv[1]}/log.txt'
with open(path, 'r') as f:
while True:
line = f.readline()
if 'RemoteScript' in line:
print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment