Skip to content

Instantly share code, notes, and snippets.

@andrewshell
Created November 13, 2020 22:46
Show Gist options
  • Save andrewshell/b7a6bc3c0337123c0d632982a1cbce8f to your computer and use it in GitHub Desktop.
Save andrewshell/b7a6bc3c0337123c0d632982a1cbce8f to your computer and use it in GitHub Desktop.
Sample script using new async/await shellRunScript
<?xml version="1.0"?>
<opml version="2.0">
<head>
<title>iconbar.opml</title>
<dateCreated>Fri, 13 Nov 2020 21:25:28 GMT</dateCreated>
<dateModified>Fri, 13 Nov 2020 22:28:35 GMT</dateModified>
<expansionState>1</expansionState>
<lastCursor>2</lastCursor>
</head>
<body>
<outline text="rss" created="Fri, 13 Nov 2020 21:25:28 GMT">
<outline text="let headers = opGetHoistedHeaders ();" created="Fri, 13 Nov 2020 21:25:38 GMT"/>
<outline text="let upTitle = await runNodeScript(`string.upper(&quot;${headers.title}&quot;)`);" created="Fri, 13 Nov 2020 21:44:10 GMT"/>
<outline text="alert(upTitle);" created="Fri, 13 Nov 2020 21:55:32 GMT"/>
</outline>
</body>
</opml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment