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
import os | |
from IPython.core.magic import register_line_magic as line_magic | |
@line_magic | |
def maestro(name): | |
quote = lambda text: '"{}"'.format(text) | |
command = " osascript -e 'tell application {0} to do script {1}' " | |
os.system(command.format(quote("Keyboard Maestro Engine"), quote(name))) |
OlderNewer