For the complete documentation index, see llms.txt. This page is also available as Markdown.

ゲスト OS での AppleScript の使用

AppleScript を使用して、ゲスト OS のアプリケーションで複数のファイルや Web サイトを開くことができます。これは、自動化されたワークフローを作成するのに必要です。

説明をわかりやすくするために、AppleScript(AppleScript エディター)を使用して Windows のメモ帳で .txt ファイルを開く必要があると仮定します。この場合のコマンドは、次のような構文になります。

tell application "Notepad"
open "/Users/username/filename.txt"
end tell

ゲスト OS のアプリケーションで Web サイトを開く場合の例として、Microsoft Edge で "www.parallels.com" を開く必要があるとします。この場合のコマンドは、次のような構文になります。

tell application "Microsoft Edge"
open "//www.parallels.com"
end tell