让 applescript 在屏幕右侧启动 android 模拟器

get applescript to start android emulator on right side of screen

我设置了一个 android 模拟器,如果我 android avd 并启动一个设备,该设备的模拟器就会出现。我想要 运行 一个苹果脚本,它将把这个模拟器 window 定位到我选择的显示器上的某个位置。我可以用来完成此操作的示例 applescript 代码是什么?

运行 来自脚本编辑器的代码并观察它的 window 移动。

tell application "System Events"
    tell process "Script Editor"
        set position of window 1 to {4, 90}
    end tell
end tell

您可以找到您想要控制的进程的名称...

tell application "System Events" to return name of processes