Created
April 2, 2021 18:44
-
-
Save lannonbr/b55fb839cdda9d5dad46b4f29963362d to your computer and use it in GitHub Desktop.
A Script Kit script to browse the collection of episodes on learnwithjason.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: Learn with Jason Search | |
// Description: Browse Learn With Jason Episodes | |
// Author: Benjamin Lannon | |
// Twitter: @lannonbr | |
let episode = await arg(`Search for an episode of Learn with Jason`, async () => { | |
const resp = await get('https://www.learnwithjason.dev/episodes.json') | |
return resp.data.episodes.map(episode => { | |
return { | |
value: episode.slug.current, | |
name: episode.title | |
} | |
}) | |
}) | |
let url = `https://www.learnwithjason.dev/${episode}` | |
exec(`open ${url}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment