1 Star 0 Fork 65

nonevx / PD-Runner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AppleScript_en.md 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
lihaoyun 提交于 2021-12-01 18:41 . add AppleScript_en.md.

Supported commands

Now you can call PD Runner through AppleScript. PD Runner supports the following commands:
start vm "name" [with password "pass"], start macvm, list all, start all, stop all, hide icon, show icon

Use example

👉Run PD runner before using Applescript, or run:

tell application "PD Runner" to activate

Start a virtual machine named "windows 11":

tell application "PD Runner" to start vm "Windows 11"

If the virtual machine is encrypted:

tell application "PD Runner" to start vm "Windows 11" with password "foobar"

Start the macOS virtual machine based on Apple Silicon:

tell application "PD Runner" to start macvm

List all virtual machines:

tell application "PD Runner" to list all

Start/Stop all virtual machines:

tell application "PD Runner" to start all
tell application "PD Runner" to stop all

Hide/Show menu bar icon (works at next time you start PD Runner):

tell application "PD Runner" to hide icon
tell application "PD Runner" to show icon
1
https://gitee.com/nonevxx/PD-Runner.git
git@gitee.com:nonevxx/PD-Runner.git
nonevxx
PD-Runner
PD-Runner
main

搜索帮助