小编ous*_*ong的帖子

无法使用 Applescript 调整窗口大小

我使用脚本编辑器编辑了以下 Applescript,尝试调整 RStudio 窗口的大小,但没有成功。RStudio 已加载,但未正确调整大小。下面附有代码和错误消息。有任何想法吗?我使用的是 macOS Big Sur 11.0.1 和 RStudio 1.3.1073。谢谢!

tell application "RStudio"
    activate
    set the bounds of the first window to {140, 0, 1160, 775}
end tell
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

applescript window-resize rstudio

1
推荐指数
1
解决办法
1088
查看次数

标签 统计

applescript ×1

rstudio ×1

window-resize ×1