Skip to content

Instantly share code, notes, and snippets.

@luckman212
Last active May 16, 2023 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckman212/1d9275cf77c3b3fa935acbda7e95a548 to your computer and use it in GitHub Desktop.
Save luckman212/1d9275cf77c3b3fa935acbda7e95a548 to your computer and use it in GitHub Desktop.
URL-encode Obsidian links - meant to be used with Service Station, Alfred etc.
@floppybox
Copy link

Hello Luckman212,
I would love to use your script with Obsidian and Service Station, which I bought for this purpose because it would make things so much easier with external files.
I have copied the script to the Application Scripts Directory of Service Station and it shows up in the context menu of my files.
But when click on the item in the context menu of any file, nothing happens.
Anything I could have missed?
Regards
Florian

@luckman212
Copy link
Author

The above script is not a fully baked solution @floppybox

I just posted a version that should fully work for you, as long as you have python3 installed via Homebrew.
see https://gist.github.com/luckman212/d2570b072fd1698492b0e17183990004

Let me know!

@faxd
Copy link

faxd commented May 16, 2023

@floppybox I needed to "chmod +x" the script before it worked.

@luckman212
Copy link
Author

@faxd That's a good point. Yes the script needs to be executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment