Created
October 10, 2022 23:44
-
-
Save joshdavenport/c136776ba20e01975bc8a251a4d3d58d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Name: Open Notion URL in Notion App | |
import "@johnlindquist/kit" | |
const url = await arg('What is the Notion URL?'); | |
if (!url.includes('notion.so')) { | |
throw new Error('Not a Notion URL'); | |
} | |
await applescript(String.raw` | |
tell application "Notion" | |
activate | |
open location "${url}" | |
end tell | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment