Skip to content

Commit 6167c88

Browse files
committed
2 parents 4135bea + 3bea3b8 commit 6167c88

File tree

124 files changed

+6255
-690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+6255
-690
lines changed

.github/workflows/script-commands.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: macos-12
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To install new commands, follow these steps:
3636

3737
1. Choose a script from the [community repo](https://github.com/raycast/script-commands/tree/master/commands#apps) and save it into a new directory.
3838

39-
Scripts containing the word `.template.` in the filename require some values to be set (check [the troubleshouting section](#troubleshooting-and-faqs) for more information).
39+
Scripts containing the word `.template.` in the filename require some values to be set (check [the troubleshooting section](#troubleshooting-and-faqs) for more information).
4040

4141
Alternatively, instead of creating a new directory you can reuse the repo's [`_enable-commands` folder](https://github.com/raycast/script-commands/tree/master/_enabled-commands).
4242
3. Open the Extensions tab in the Raycast preferences

Tools/Toolkit/toolkit

Lines changed: 0 additions & 1 deletion
This file was deleted.

commands/README.md

Lines changed: 124 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/osascript
2+
3+
# Note: Bartender 4 required
4+
# Install from https://www.macbartender.com/
5+
6+
# Required parameters:
7+
# @raycast.schemaVersion 1
8+
# @raycast.title Search Bartender
9+
# @raycast.mode silent
10+
11+
# Optional parameters:
12+
# @raycast.icon images/bartender-icon.png
13+
# @raycast.argument1 { "type": "text", "placeholder": "Menu Bar Item Name" }
14+
# @raycast.packageName Bartender.app
15+
16+
# Documentation:
17+
# @raycast.description Perform a quick search of Menu Bar Items, in Bartender 4
18+
19+
on run argv
20+
tell application "Bartender 4"
21+
quick search with argv
22+
end tell
23+
end run
6.41 KB
Loading
7.11 KB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/osascript
2+
3+
# Dependency: This script requires `BusyCal` installed: https://www.busymac.com/busycal/
4+
5+
# Required parameters:
6+
# @raycast.schemaVersion 1
7+
# @raycast.title Create Event/Task
8+
# @raycast.mode compact
9+
# @raycast.packageName BusyCal
10+
11+
# Optional parameters:
12+
# @raycast.icon images/busycal.png
13+
# @raycast.argument1 { "type": "dropdown", "placeholder": "type", "data" : [{"title" : "event", "value": "event"}, {"title" : "task", "value": "task"}], "optional": true}
14+
# @raycast.argument2 { "type": "text", "placeholder": "entry", "percentEncoded": true}
15+
16+
# Documentation:
17+
# @raycast.description Creates new events or tasks in BusyCal.
18+
# @raycast.author Annie Ma
19+
# @raycast.authorURL www.anniema.co
20+
21+
on run argv
22+
set query2 to (item 2 of argv)
23+
tell application "BusyCal"
24+
activate
25+
if (item 1 of argv = "event") then open location "busycalevent://new/" & query2
26+
if (item 1 of argv = "task") then open location "busycalevent://new/-" & query2
27+
end tell
28+
end run
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title chatgpt
6+
# @raycast.mode silent
7+
8+
# Optional parameters:
9+
# @raycast.icon images/chatgpt.png
10+
# @raycast.packageName Chatgpt Util
11+
12+
# Documentation:
13+
# @raycast.description Open chatgpt in safari
14+
# @raycast.author gintonyc
15+
# @raycast.authorURL https://raycast.com/gintonyc
16+
17+
18+
tell application "Safari"
19+
set targetURLPrefix to "https://chat.openai.com"
20+
set foundTab to false
21+
22+
repeat with aWindow in windows
23+
repeat with aTab in (tabs of aWindow)
24+
set tabURL to URL of aTab
25+
if tabURL starts with targetURLPrefix then
26+
set foundTab to true
27+
set current tab of aWindow to aTab
28+
exit repeat
29+
end if
30+
end repeat
31+
if foundTab then exit repeat
32+
end repeat
33+
34+
if not foundTab then
35+
make new document with properties {URL:targetURLPrefix}
36+
end if
37+
activate
38+
end tell
1.26 KB
Loading

0 commit comments

Comments
 (0)