Next, we’ll set a keyboard shortcut to trigger the automation: ![]() Once you’ve created this script, hit File → Save and name your automation whatever you like. As you can see, AppleScript makes things a bit more complex than AutoHotKey (and credit goes to user adayzdone on this Apple StackExchange question I simply modified their script for this Notion task.) This AppleScript will do a find-and-replace operation on the current contents of your clipboard. Tell application "System Events" to keystroke "v" using command down Set AppleScript's text item delimiters to "notion" set the clipboard to myText as text set text item delimiters to TID Set myText to the clipboard as « class utf8» MacOS comes with a built-in tool called Automator that can be used to automate all sorts of tasks across your apps and OS. Now, on MacOS, there is both an easy way to do this with a paid app, and a hard way to do it for free. Hover over it, and you’ll see that filename notion.ahk.įinal result: After copying a Notion page link, you can simply press Ctrl+Alt+V to paste the notion:// version anywhere. You can tell that the script is running by checking for the AutoHotKey logo within your system tray (on the right side of the Windows taskbar). Once you’ve pasted in the script, save the document and double-click the script within Windows Explorer to run it. By sending Ctrl+V, it pastes the new URL.
0 Comments
Leave a Reply. |