

def _dispatch_rstudio_osx(self, cmd):
    cmd = self.clean_cmd(cmd)
    script = '\n        on run argv\n            tell application "RStudio"\n                cmd item 1 of argv\n            end tell\n        end run\n        '
    subprocess.call(['osascript', '-e', script, cmd])

dataset/ETHPy150Open randy3k/SendTextPlus/textsender.py TextSender._dispatch_rstudio_osx/original