Skip to content

Commit

Permalink
Improved Applescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Aug 11, 2023
1 parent 835a26d commit 117e740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interpreter/code_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def run(self):
code = code.replace('"', r'\"')
# Wrap in double quotes
code = '"' + code + '"'
code = "osascript -e " + code
# Prepend start command + newline (to send it in)
code = "osascript -e " + code + "\n"

# Debug
if self.debug_mode:
Expand Down

0 comments on commit 117e740

Please sign in to comment.