0

I need an application, which will:

  1. Activate Parallels Desktop
  2. While holding Opt, select 'Actions > Suspend'
  3. Activate SmartSleep
  4. Minimize SmartSleep
  5. Click 'Hibernate' of menu item 'QuickSleep' of menu
  6. 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
1

Sleep/wake cannot trigger scripts. EventScripts, although it is a very impressive program. it not fit this purpose it does NOT actually appear to be able to trigger scripts quickly enough before your Mac goes to sleep.

but there are many third party solutions. For example, sleepwatcher

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .