File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
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 } "` ) ;
You can’t perform that action at this time.
0 commit comments