You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AppleScript not supported in RStudio Desktop 2022.12.0+353 #12521
RStudio Edition : Desktop
RStudio Version : 2022.12.0+353
OS Version : OS X 10.15.7
R Version : 4.2.2
Steps to reproduce the problem
Sending code to RStudio via AppleScript no longer works.
Eg tell application "RStudio" to cmd "print('hello')"
Describe the problem in detail
The AppleScript fails with an error and the intended code is not executed in the RStudio console. In previous versions of RStudio Desktop, AppleScript support was implemented by @randy3k as per pull requests #3355 and #527. Something has changed in 2022.12.0+353 such that AppleScript is no longer supported
Describe the behavior you expected
Expected behaviour is for RStudio to execute code from AppleScript using tell 'Rstudio' to cmd .... The expected behaviour can be achieved by rolling back to RStudio 2022.07.2+576.
Activity
randy3k commentedon Jan 4, 2023
RStudio has moved from Native Obj-C using Qt to electron https://github.com/rstudio/rstudio/wiki/Electron-Desktop.
And unfortunately, electron doesn't support Apple Script: electron/electron#4418
ronblum commentedon Jan 4, 2023
@gc5011 Thank you for raising this, and @randy3k thank you for providing the added information!