Skip to content

Commit b8c0889

Browse files
alessandrapereyradehesa
authored andcommitted
Add Clipboard to 17TRACK script
1 parent 1e564c3 commit b8c0889

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env node
2+
3+
// Dependency: This script requires Nodejs.
4+
// Install Node: https://nodejs.org/en/download/
5+
6+
// Required parameters:
7+
// @raycast.schemaVersion 1
8+
// @raycast.title Clipboard to 17TRACK
9+
// @raycast.mode silent
10+
// @raycast.packageName Web Searches
11+
12+
// Optional parameters:
13+
// @raycast.icon 🚚
14+
15+
// Documentation:
16+
// @raycast.description Open 17TRACK with the tracking code found in the clipboard
17+
// @raycast.author Alessandra Pereyra
18+
// @raycast.authorURL https://github.com/alessandrapereyra
19+
20+
const child_process = require("child_process");
21+
const trackingCode = child_process.execSync("pbpaste").toString();
22+
23+
const url = `https://t.17track.net/en#nums=${trackingCode}`;
24+
child_process.execSync(`open "${url}"`);

0 commit comments

Comments
 (0)