This repository was archived by the owner on Oct 20, 2020. It is now read-only.
File tree 2 files changed +9
-18
lines changed
2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ const shortenURL = async (longLink) => {
31
31
}
32
32
} ;
33
33
34
- const run = ( longLink ) => {
34
+ const run = async ( longLink ) => {
35
35
const startsWIthHTTP = / ^ h t t p / ;
36
36
if ( startsWIthHTTP . exec ( longLink ) !== null ) {
37
- const notification = `display notification "${ longLink } " with title "Link Shortened" subtitle "${ shortenURL (
37
+ const notification = `display notification "${ longLink } " with title "Link Shortened" subtitle "${ await shortenURL (
38
38
longLink
39
39
) } " sound name "purr"`;
40
40
applescript . execString ( notification ) ;
Original file line number Diff line number Diff line change 56
56
<string >/System/Library/Automator/Run Shell Script.action</string >
57
57
<key >ActionName</key >
58
58
<string >Run Shell Script</string >
59
+ <key >ActionNameComment</key >
60
+ <string >Execute Node Script</string >
59
61
<key >ActionParameters</key >
60
62
<dict >
61
63
<key >COMMAND_STRING</key >
84
86
<key >Class Name</key >
85
87
<string >RunShellScriptAction</string >
86
88
<key >InputUUID</key >
87
- <string >0B0A4597-056F-4F13-A80C-73045575B549 </string >
89
+ <string >0F203449-94DE-4D80-9E19-7841E6B82969 </string >
88
90
<key >Keywords</key >
89
91
<array >
90
92
<string >Shell</string >
94
96
<string >Unix</string >
95
97
</array >
96
98
<key >OutputUUID</key >
97
- <string >02DEE96C-9F25-4C5F-9986-373F1F15B844 </string >
99
+ <string >85CB35BD-0DED-4135-8342-705FBAB19673 </string >
98
100
<key >UUID</key >
99
- <string >4DF2450D-3BA3-484F-B94F-FF3E857B056A </string >
101
+ <string >01D4417B-B1D0-4B14-801A-382687E189A7 </string >
100
102
<key >UnlocalizedApplications</key >
101
103
<array >
102
104
<string >Automator</string >
169
171
<string >4</string >
170
172
</dict >
171
173
</dict >
174
+ <key >conversionLabel</key >
175
+ <integer >0</integer >
172
176
<key >isViewVisible</key >
173
177
<true />
174
178
<key >location</key >
182
186
</array >
183
187
<key >connectors</key >
184
188
<dict />
185
- <key >variables</key >
186
- <array >
187
- <dict >
188
- <key >UUID</key >
189
- <string >5A98951F-9CA1-49F0-8A99-B5F552A313CB</string >
190
- <key >identifier</key >
191
- <string >com.apple.Automator.Variable.AppleScript</string >
192
- <key >name</key >
193
- <string >AppleScript</string >
194
- <key >value</key >
195
- <string >"Text"</string >
196
- </dict >
197
- </array >
198
189
<key >workflowMetaData</key >
199
190
<dict >
200
191
<key >workflowTypeIdentifier</key >
You can’t perform that action at this time.
0 commit comments