Skip to content

Commit 8bc3cae

Browse files
authored
Create safari-current-page-url.sh
1 parent baf15bf commit 8bc3cae

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Copy Current Page URL
6+
# @raycast.mode silent
7+
# @raycast.packageName Safari
8+
#
9+
# Optional parameters:
10+
# @raycast.icon 🧭
11+
#
12+
# Documentation:
13+
# @raycast.description This script copies URL of currently opened page in Safari into clipboard.
14+
# @raycast.author Kirill Gorbachyonok
15+
# @raycast.authorURL https://github.com/japanese-goblinn
16+
17+
osascript -e 'tell application "Safari" to return URL of front document' | tr -d '[:space:]' | pbcopy
18+
echo "Copied URL"

0 commit comments

Comments
 (0)