I need an application, which will:
- Activate Parallels Desktop
- While holding Opt, select 'Actions > Suspend'
- Activate SmartSleep
- Minimize SmartSleep
- Click 'Hibernate' of menu item 'QuickSleep' of menu
- After resuming the Mac, resume vm also.
Here is my try:
tell application "Parallels Desktop" to activate tell application "System Events" tell process "Parallels Desktop" click menu 1 of menu item 5 of menu delay 1 tell application "System Events" to keystroke option delay 1 end tell end tell