Benches MacBooks

4

how 2 make automator shut down macbook?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

is there anyway i can make automator shut down mac book or put it to sleep when a particular list of tasks is done?

also if possible wake it up or boot it up as and when required.

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    Niel

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Go into the library of actions, find the AppleScript action, drag it to the bottom of the workflow, and paste the script text inside the lines at the top and bottom of that action, replacing all other existing content.

    (37282)

  2. 0

    Niel

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Add the following AppleScript action to the end of the workflow:

    tell application "System Events"

    sleep--or shut down

    end tell

    Waking up or starting the computer requires using the Energy Saver pane of System Preferences.

    (37232)

  3. 0

    AceNeerav

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    hello Neil, what u adviced pretty much solves my issue so please notice the star.

    however, i have kept the thread as unanswered cause i have one more question, if you could help me out. i pasted the script in 'run apple script' action it did put my mac to sleep. then, using script editor i saved the script as an app and then using 'launch application' action i pointed to this app. this time too the mac went to sleep but there was an error in automator when i woke it up which asked me to check the action's properties. so can u tell me what is happening? also, later i saved the script as a script file using script editor. now i cant find any automator action to point to this script like i could point to an app using 'launch application' action. any help on that?

    i appreciate your time. mac is beautiful. and after i am done with my java web development course i definitely got to learn apple script.

    Neerav

    Message was edited by: AceNeerav

  4. 0

    AceNeerav

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    thanks for ur time neil

    where exactly do i put this script?

    Neerav