Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cyclenerd/macos-missing-shutdown-app
- Owner: Cyclenerd
- License: apache-2.0
- Created: 2018-07-15T13:12:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T13:13:35.000Z (11 months ago)
- Last Synced: 2024-10-11T02:45:03.728Z (about 1 month ago)
- Topics: apple, apple-automator, applescript, cli, command-line, mac, macintosh, macintosh-computer, macos, macosx, restart, shutdown, spotlight
- Homepage:
- Size: 3.08 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.appCopy 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)