I was frustrated with the way you create webpage link on Mac (why MacOS can't work as other operation systems and use URL???)
Anyway, I've begin serching web, looking for a solution, which eventually led me to the creation of flagsoft. His / Hers project was a big step in a good direction (script to automatically crete url's in for every webloc file in a given directory), but was not enough for me. Thus, I've decided to make my own wersion which can be integrated with Raycast
Inspired by the way Raycast Visual Studion extension works , I've decided to combine this idea with the script, to create an ultimate solution, which can be executed in current active folder, and run as a user script through Raycast.
After proper configuration it should work like this: (aka. 'it works on my machine')
- You add or have webloc file(s) in a directory
-
While you have this directory open in finder and have focus on this window, you open raycast search bar
-
You type 'Your name of script shortcut' (or it's alias) and execute it (press Enter)
- All webloc files magically are converted to url (by default oryginal files are deleted in my solution)
If you would like to have this working on your machine too, here's the instruction on how to do it:
- Open Raycast, and start typing 'script' to find
Create script command
option
- Open it, and create Bash script, with your custom name, and save it in desired location (it is worth to note, that path to the file, optimally would NOT contain spaces, non english characters and unusual charactrest like '!')
- In this directory in which you store your script fork / clone / download / copy paste content of this repo's file to your file
|WARNING
| Top comments - those are for Raycast, to properly store logo and name of the file - in the source code I have my own - you can create your own
|WARNING
| DO NOT DELETE#!bin/bash
- it is calling bash to execute the script without it it won't work
At this point you're almost done - to allow execution of script, there might be needed change of privlidges of this file, to allow execution of bash script - one can do it using terminal, and chmod +x 'name of your file'
command
The oryginal project https://github.com/flagsoft/webloc2url
The GUI adaptation of the oryginal https://github.com/anonymousaga/webloc-to-url-mac-app/
The inspiration for the way it works Open in Visula Studio
Inspired by the way Raycast Visual Studion extension works , I've decided to combine this idea with the script, to create an ultimate solution, which can be executed in current active folder, and run as a user script through Raycast.
After proper configuration it should work like this: (aka. 'it works on my machine')
- You add or have webloc file(s) in a directory
-
While you have this directory open in finder and have focus on this window, you open raycast search bar
-
You type 'Your name of script shortcut' (or it's alias) and execute it (press Enter)
- All webloc files magically are converted to url (by default oryginal files are deleted in my solution)
If you would like to have this working on your machine too, here's the instruction on how to do it:
- Open Raycast, and start typing 'script' to find
Create script command
option
- Open it, and create Bash script, with your custom name, and save it in desired location (it is worth to note, that path to the file, optimally would NOT contain spaces, non english characters and unusual charactrest like '!')
- In this directory in which you store your script fork / clone / download / copy paste content of this repo's file to your file
|WARNING
| Top comments - those are for Raycast, to properly store logo and name of the file - in the source code I have my own - you can create your own
|WARNING
| DO NOT DELETE#!bin/bash
- it is calling bash to execute the script without it it won't work
At this point you're almost done - to allow execution of script, there might be needed a change in privlidges of this file, to allow execution of bash script - one can do it using terminal, and chmod +x 'name of your file'
command
The oryginal project https://github.com/flagsoft/webloc2url
The GUI adaptation of the oryginal https://github.com/anonymousaga/webloc-to-url-mac-app/
The inspiration for the way it works Open in Visual Studio Code