SSH-URL Finder Service

This little AppleScript installed as a Finder service copies the SSH-URL of the currently selected file in the clipboard.

Do you happen to have Git repositories shared on a server? Do you copy the URL from the Finder's info panel and replace the spaces with %20 yourself? No need to do this anymore.
Just select the Git-File (or any other file) on your server, go to Finder -> Services -> Get SSH URL and you get it in the clipboard.

 

Installation

  • Download and extract the following file (<10.8), (10.9)
  • Doubleclick on the Automator file "Get SSH URL"
  • Select open in Automator
  • Adjust the server url
  • Save & close the file
  • Doubleclick on the Automator file again
  • Select Install


If you need to change something in the scripts, they are installed in your ~/Library/Services/

Refresh the services menu

If the service doesn't show up in the menu, try running "/System/Library/CoreServices/pbs" in the Terminal. This will force the pasteboard service to rescan some folders.

License

C2012 Florian Heller. You are free to redistribute or modify this script as long as you do not modify or remove this copyright notice.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Attachments:
File Description File size Downloads Last modified
Get SSH URL.zip   70 kB 1911 2013-01-25 14:10
SSHURLService_10.9.zip   119 kB 1949 2014-01-20 14:21

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.