Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
tell application "Keyboard Maestro Engine"
-- IF KM Variable does NOT exist, the AS Variable will be set to empty string --
set the_path to getvariable "Path"
end tell
tell application "iTerm"
create window with default profile
set _session to current session of current window
on error
set _term to (make new terminal)
tell _term
launch session "Default"
set _session to current session
end tell
end try
tell _session
write text "pyenv data && ipython -i --c=\"import pickle; x = pickle.load(open('"& the_path & "', 'rb'))\""
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment