We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 312bc01 commit c99075eCopy full SHA for c99075e
commands/system/sleep-timer.applescript
@@ -0,0 +1,22 @@
1
+#!/usr/bin/osascript
2
+
3
+# Required parameters:
4
+# @raycast.schemaVersion 1
5
+# @raycast.title Sleep Timer
6
+# @raycast.mode silent
7
+# @raycast.description Put your Mac to sleep (in X minutes).
8
+# @raycast.packageName System
9
10
+# Optional parameters:
11
+# @raycast.icon 😴
12
+# @raycast.argument1 { "optional": true, "type": "text", "placeholder": "(in) minutes" }
13
14
+# Documentation:
15
+# @raycast.author AndriiBarabash
16
+# @raycast.authorURL https://github.com/AndriiBarabash
17
18
+on run argv
19
+ delay (item 1 of argv) * 60
20
+ tell application "Finder" to sleep
21
+end run
22
0 commit comments