Skip to content

AppleScript not supported in RStudio Desktop 2022.12.0+353 #12521

Open

Description

@gc5011

System details

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.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Jan 3, 2023
  2. randy3k commented on Jan 4, 2023

    @randy3k
    Contributor

    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

  3. added and removed
    new
    on Jan 4, 2023
  4. added this to the Later milestone on Jan 4, 2023
  5. ronblum commented on Jan 4, 2023

    @ronblum
    Contributor

    @gc5011 Thank you for raising this, and @randy3k thank you for providing the added information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions