smoitzheim Posted August 21, 2022 Share Posted August 21, 2022 Hi, I was looking for a workflow to shorten URLS with my self-hosted YOURLS installation, but all the workflows I found were pretty old and either the download links didn't work anymore, or they used usr/bin/php, which doesn't seem to work anymore? I'm sure you could get those old workflows to work, but I didn't know how, so I made my own based on the bash script found here. I don't actually know a lot about scripting, there's probably a better way to do this, but this works for me and maybe someone will get some use out of it To setup, you need to change two lines in the "Run Script" utility, inserting the URL of your YOURLS installation and the signature token from your "Tools" page. The workflow itself works via the keyword "short", though you can change that of course, and it looks for the URL in your clipboard. The resulting short URL is then again copied to your clipboard. Optionally you can type something after the keyword, so something like "short newlink" would shorten whatever URL you have copied to "http://your.site/newlink" and copy that to your clipboad. You can download the workflow here. Link to comment
Vero Posted August 22, 2022 Share Posted August 22, 2022 @smoitzheim Welcome to the forum and thanks for sharing your workflow As a suggestion, you could set up the configuration to be done via the User Configuration feature: https://www.alfredapp.com/help/workflows/user-configuration/ This would mean that users don't need to dig into the Run Script to add their own configuration details. Cheers, Vero smoitzheim 1 Link to comment
smoitzheim Posted August 22, 2022 Author Share Posted August 22, 2022 Thank you, good point! I've updated the Workflow, the download link should give you the new version with User Configuration implemented. Vero 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now