What command to use to send code to R console through AppleScript?

29 Views Asked by At

I am trying to fix an issue re the SendCode package for Sublime Text (this issue), and it looks like the problem is that the cmd command does not work when writing an AppleScript to send code to the R console.

This works:

tell application "R"
    activate
end tell

But when I try to send some text to the console using cmd, it returns the following error:

enter image description here

Could it be a macOS version specific problem? I am running Big Sur in this computer, but the same AppleScript does work in another machine running Ventura. I wanted to ask first in case there is an easier solution that just trying to update macOS.

0

There are 0 best solutions below