forked from raycast/script-commands
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfocus.applescript
More file actions
executable file
·39 lines (35 loc) · 992 Bytes
/
justfocus.applescript
File metadata and controls
executable file
·39 lines (35 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title JustFocus
# @raycast.mode silent
# @raycast.packageName Navigation
# Optional parameters:
# @raycast.icon images/justfocus.png
# @raycast.argument1 { "type": "text", "placeholder": "po,sb,lb,stop" }
# Documentation:
# @raycast.author Jax0rz
# @authorURL https://github.com/Jax0rz
on run argv
set q to item 1 of argv
if ((q as string) is equal to "po") then
tell application "JustFocus"
launch
start pomodoro
end tell
else if ((q as string) is equal to "sb") then
tell application "JustFocus"
launch
short break
end tell
else if ((q as string) is equal to "lb") then
tell application "JustFocus"
launch
long break
end tell
else if ((q as string) is equal to "stop") then
tell application "JustFocus"
stop
end tell
end if
end run