Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cyclenerd/macos-missing-shutdown-app

🍎 macOS Shutdown, Restart, Sleep and Log Out App
https://github.com/cyclenerd/macos-missing-shutdown-app

apple apple-automator applescript cli command-line mac macintosh macintosh-computer macos macosx restart shutdown spotlight

Last synced: 16 days ago
JSON representation

🍎 macOS Shutdown, Restart, Sleep and Log Out App

Awesome Lists containing this project

README

        

# macOS Shutdown, Restart, Sleep and Log Out App

[![Badge: Apple](https://img.shields.io/badge/Apple-000000.svg?logo=apple&logoColor=white)](https://github.com/Cyclenerd/macos-missing-shutdown-app#readme)

Four simple Apple Automator apps:

* Shutdown.app
* Restart.app
* Sleep.app
* Log Out.app

Copy these apps to your application folder. Use Spotlight Search to shut down your Mac.

![Screenshot: Spotlight](images/shutdown-spotlight.png)

## Installation

[![Download: Apps.zip](https://www.nkn-it.de/img/download_button_200px.png)](https://github.com/Cyclenerd/macos-missing-shutdown-app/releases/download/v1.1/Apps.zip)

Just download [`Apps.zip`](https://github.com/Cyclenerd/macos-missing-shutdown-app/releases/download/v1.1/Apps.zip) and copy the apps into your application (`~/Applications`) folder.

## Apps

### Shutdown.app

Shut down without showing a confirmation dialog.

Apple Script:
```
tell app "System Events" to shut down
```

### Restart.app

Restart without showing a confirmation dialog.

Apple Script:
```
tell app "System Events" to restart
```

### Sleep.app

Go to sleep without showing a confirmation dialog.

Apple Script:
```
tell app "System Events" to sleep
```

### Log Out.app

Log out after showing a confirmation dialog.

Apple Script:
```
tell app "System Events" to log out
```

## Icons

If you modify and save the app with Apple Automator, the icon will be reset.

You can set the icon again:

```shell
rm "~/Applications/Log Out.app/Icon"*
cp images/logout.icns "~/Applications/Log Out.app/Contents/Resources/AutomatorApplet.icns"
```

## License

[Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)