prevent imac from shutting down while playing music

How do I change settings so I can play my Christmas music from my iMac to my tv through Apple TV? It plays for a short time then my iMac goes into sleep mode and I have tried different things to stop that from happening. I am NOT TECH SAVVY.

Thank you and have a safe and happy holiday season.

Posted on Dec 22, 2018 7:10 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 22, 2018 5:36 PM

Hi Huskies_mlspl!

There is an app for that! I use it all the time!

Get Amphetamine from the Mac App Store (click here).

When you have downloaded it and opened it up, it will ask you some questions and give you tips.

When you have finished all that, there should be new little icon in your iMac's toolbar that looks like this:

Click on it and select "preferences."

At the top of the preferences window, select triggers,

then check "enable triggers."

Click the + sign at the bottom of the window.

Name your trigger (something like "Play Music" or "Music").

Next, where it says "Select a criterion to configure," select "app," and check the box next to "use app criterion." Now open the app you want to play music from (iTunes, Spotify, etc.)

then go back to the preferences window and select it from the list.

Before pressing save, you can select either "Allow display to sleep when this trigger activates a session" or "allow screen saver to run when this trigger activates a session," or both, or none!

(note that if the display goes to sleep the computer will still be on).

Then press save!

On the top of the preferences window you can click on any of the others and customize the settings to your liking.

Now whenever this app is open, your computer will not sleep, but it will sleep if the app has been quit.


I really hope this helps!

8 replies
Question marked as Top-ranking reply

Dec 22, 2018 5:36 PM in response to Huskies_mlspl

Hi Huskies_mlspl!

There is an app for that! I use it all the time!

Get Amphetamine from the Mac App Store (click here).

When you have downloaded it and opened it up, it will ask you some questions and give you tips.

When you have finished all that, there should be new little icon in your iMac's toolbar that looks like this:

Click on it and select "preferences."

At the top of the preferences window, select triggers,

then check "enable triggers."

Click the + sign at the bottom of the window.

Name your trigger (something like "Play Music" or "Music").

Next, where it says "Select a criterion to configure," select "app," and check the box next to "use app criterion." Now open the app you want to play music from (iTunes, Spotify, etc.)

then go back to the preferences window and select it from the list.

Before pressing save, you can select either "Allow display to sleep when this trigger activates a session" or "allow screen saver to run when this trigger activates a session," or both, or none!

(note that if the display goes to sleep the computer will still be on).

Then press save!

On the top of the preferences window you can click on any of the others and customize the settings to your liking.

Now whenever this app is open, your computer will not sleep, but it will sleep if the app has been quit.


I really hope this helps!

Dec 22, 2018 5:03 PM in response to Huskies_mlspl

One solution would be to open terminal (command+space bar to bring up spotlight and type "terminal", or you can find it in the launchpad) and type the command: "caffeinate". This command will prevent your iMac from sleeping. Once you're finished listening to your music, you can use control+C in the terminal window to end the caffeinate process, or you can just close the terminal window and it will ask you if you want to terminate the caffeinate process; click terminate and your system will return to normal.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

prevent imac from shutting down while playing music

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.