I have tried do it for over 1,5 hour, but I can't get it. I need an application, which will: 1. Activate Parallels Desktop, 2. Click option and then click Suspend of menu of menu item "Actions" of menu, 3. Activate SmartSleep, 5. Minimize SmartSleep 6. Click Hibernate of menu item QuickSleep of menu, 6. After resume resume vm. Here is my try:
tell application "Parallels Desktop" to activate
tell application "System Events"
tell process "Parallels Desktop"
tell application "System Events" to keystroke option
delay 1
click menu 1 of menu item 5 of menu
delay 1
end tell
end tell
Aucun commentaire:
Enregistrer un commentaire