Skip to content

Commit c99075e

Browse files
Added sleep timer script command (#985)
1 parent 312bc01 commit c99075e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)