Skip to content

Instantly share code, notes, and snippets.

@cslee
Last active February 8, 2025 12:43
Show Gist options
  • Select an option

  • Save cslee/ad14d2e5deb55d97da07e46951d8f8b2 to your computer and use it in GitHub Desktop.

Select an option

Save cslee/ad14d2e5deb55d97da07e46951d8f8b2 to your computer and use it in GitHub Desktop.
Run Parallels Desktop on Mac at login and at a specific time

Run Parallels Desktop on Mac at login and at a specific time

Create a job definition

  • Filename: ~/Library/LaunchAgents/com.parallels.desktop.agent.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.parallels.desktop.agent</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/bin/open</string>
		<string>-a</string>
		<string>/Applications/Parallels Desktop.app</string>
	</array>
	<key>StandardErrorPath</key>
	<string>/dev/null</string>
	<key>StandardOutPath</key>
	<string>/dev/null</string>
	<key>RunAtLoad</key>
	<true/>
	<key>StartCalendarInterval</key>
	<array>
		<dict>
			<key>Hour</key>
			<integer>18</integer>
			<key>Minute</key>
			<integer>0</integer>
		</dict>
	</array>
</dict>
</plist>

Load the job

launchctl load ~/Library/LaunchAgents/com.parallels.desktop.agent.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment