curtains 1.4

Jeremy's icon

Hi forum,

The venerable curtains object (restart and shutdown your machine) has been updated to 1.4 and now supports 64-bit (!) and will now actually load in a modern version of Max. I'm always a little late to the party, but I didn't realize that people were still using (or desiring to use) this object.

It has only been lightly tested, but appears to be working and stable. Let me know how it goes.

Jeremy

Jan M's icon

Thanks Jeremy!

riccardo dapelo's icon

Thanks, very useful object. Now is loaded in Max 8, I will try and post results.

MMa's icon

Many thanks Jeremy is very helpful. Could you add an activity to send machine to sleep?
Does it also work on windows?

Jeremy's icon

Hi, I could take a look at adding a Sleep function. There appear to be Windows externals in the archive, so my best guess is that it's working on Windows. Not that I remember porting it to Windows, but it looks like I did.

MMa's icon

Thanks for your reply and for your works (shell and curtain). Maybe the sleep is very useful for the installations. If is it possible this is great!

Jeremy's icon

By the way, and probably easiest for the time being, until I find a moment to update 'curtains': send the message 'pmset sleepnow' to the 'shell' object on macOS. On Windows, you can try some of the variations suggested in this article: https://winaero.com/how-to-sleep-windows-10-from-the-command-line/

MMa's icon

PERFECT!!

admant's icon

Thank You Jeremy, this object is very useful for installations, and it also have the windows version!
I wonder how the reboot command is called, is it safe to call it every day for years, allowing processes to end etc?

I usually use your shell object + osascript msg for this kind of maintenance routines (the sleep function is also a need). What's the best way to go in your opinion?

Thank you

Antonio

MMa's icon

Under Jeremy's advice I am using shell + PSshutdown for the sleep function in windows and I must say it works wonderfully. With curtain restarting on windows unfortunately does not work well, but I think it depends on some windows settings. However I can confirm that shell + curtain are essential in art installations.

however, before rebooting I always send a message to shell to kill all applications in run and then reboot. When the computer restarts there is another message telling the shell to open the applications needed for the installation.

Great Jeremy!

admant's icon

Hello MMA, thank you for the hint! It saves me a lot of time and tries.

Antonio

Len Richardson's icon

Thanks Jeremy,

That finally makes one of my projects 100% controlable via Mira. :)