Get Connection Status [JS1]
Don't download the shortcut
If you just want the code, there's no need to download the shortcut. Copy this and paste it in a "URL" action:
Add a "Get File of Type" with type
com.apple.webarchive below, and its output will be the word "online" or "offline". If you prefer another output (e.g. a one instead of "online", and a zero instead of "offline") change the
'online':'offline' near the end of the line (e.g. by
I use "Get File of Type" instead of "Get Contents of Webpage" to avoid that the user is misleading told that the shortcut uses Safari.
Latest Release Notes
1.0.0 - Sept. 30, 2020, 7:45 p.m.
First public version