How can i shut down my Mac using script idle?

Asked By 50 points N/A Posted on -
qa-featured

Hi everyone,

I am currently using my Mac notebook, and I want to learn, about shutting down the Mac automatically when it is not being used within fifteen minutes.

I know where the script is located on my Mac, but I don't understand how it works. 

Does anyone have an idea of using script in shutting down the Mac notebook?

How can I apply Mac shutdown script idle?

I really need your help.

I will appreciate it. 

Thanks!
 

SHARE
Answered By 5 points N/A #169895

How can i shut down my Mac using script idle?

qa-featured

You can use the AppleScript to automatically shut down your Mac PC.

The AppleScript snippet below shows the method:

This asked the Finder to start the shut down method. However, this method has some flaws:

1. AppleScript will ask you to log on your computer.

2. You can stop the Finder's shut down when launching programs asking questions.

3. It doesn't give any warning to the active user.

You can also use the Power Manager software which you can get from the link:

You can schedule a shut down or sleep after inactivity, force log out and more.

Related Questions